@@ -82,7 +82,7 @@ class Communicator
82
82
protected $ charsets = array ();
83
83
84
84
/**
85
- * @var SocketClientTransmitter The transmitter for the connection.
85
+ * @var TcpClient The transmitter for the connection.
86
86
*/
87
87
protected $ trans ;
88
88
@@ -104,7 +104,7 @@ class Communicator
104
104
public function __construct ($ host , $ port = 8728 , $ persist = false ,
105
105
$ timeout = null , $ key = '' , $ context = null
106
106
) {
107
- $ this ->trans = new T \SocketClientTransmitter (
107
+ $ this ->trans = new T \TcpClient (
108
108
$ host , $ port , $ persist , $ timeout , $ key , $ context
109
109
);
110
110
$ this ->setCharset (
@@ -140,7 +140,7 @@ public function __invoke($string = null)
140
140
*/
141
141
public static function isSeekableStream ($ var )
142
142
{
143
- if (T \StreamTransmitter ::isStream ($ var )) {
143
+ if (T \Stream ::isStream ($ var )) {
144
144
$ meta = stream_get_meta_data ($ var );
145
145
return $ meta ['seekable ' ];
146
146
}
@@ -286,8 +286,7 @@ public function getCharset($charsetType)
286
286
/**
287
287
* Gets the transmitter for this connection.
288
288
*
289
- * @return PEAR2\Net\Transmitter\SocketClientTransmitter The transmitter for
290
- * this connection.
289
+ * @return T\TcpClient The transmitter for this connection.
291
290
*/
292
291
public function getTransmitter ()
293
292
{
@@ -486,12 +485,12 @@ public function getNextWordAsStream()
486
485
* Decodes the lenght of the incoming message, as specified by the RouterOS
487
486
* API.
488
487
*
489
- * @param PEAR2\Net\Transmitter\StreamTransmitter $trans The transmitter
490
- * from which to decode the length of the incoming message.
488
+ * @param T\Stream $trans The transmitter from which to decode the length of
489
+ * the incoming message.
491
490
*
492
491
* @return int The decoded length
493
492
*/
494
- public static function decodeLength (T \StreamTransmitter $ trans )
493
+ public static function decodeLength (T \Stream $ trans )
495
494
{
496
495
$ byte = ord ($ trans ->receive (1 , 'initial length byte ' ));
497
496
if ($ byte & 0x80 ) {
0 commit comments