Hoa central
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Hoa\Socket\Connection\Connection Class Reference
Inheritance diagram for Hoa\Socket\Connection\Connection:

Public Member Functions

 __construct ($socket, $timeout, $flag, $context=null)
 
 connect ()
 
 select ()
 
 consider (Connection $other)
 
 is (Connection $connection)
 
 key ()
 
 next ()
 
 rewind ()
 
 valid ()
 
 quiet ()
 
 mute ()
 
 quietAndMute ()
 
 disconnect ()
 
 setNodeName ($node)
 
 considerRemoteAddress ($consider)
 
 enableEncryption ($enable, $type=null, $sessionStream=null)
 
 isEncrypted ()
 
 getSocket ()
 
 getTimeout ()
 
 getFlag ()
 
 getContext ()
 
 getNodeName ()
 
 getCurrentNode ()
 
 getNodes ()
 
 isQuiet ()
 
 isMute ()
 
 isDisconnected ()
 
 isRemoteAddressConsidered ()
 
 getRemoteAddress ()
 
 read ($length)
 
 readString ($length)
 
 readCharacter ()
 
 readBoolean ()
 
 readInteger ($length=1)
 
 readFloat ($length=1)
 
 readArray ($format=null)
 
 readLine ()
 
 readAll ($offset=-1)
 
 scanf ($format)
 
 write ($string, $length)
 
 writeString ($string)
 
 writeCharacter ($char)
 
 writeBoolean ($boolean)
 
 writeInteger ($integer)
 
 writeFloat ($float)
 
 writeLine ($line)
 
 writeArray (Array $array)
 
 writeAll ($string)
 
 truncate ($size)
 
 eof ()
 
 getBasename ()
 
 getDirname ()
 
- Public Member Functions inherited from Hoa\Stream\Stream
 __construct ($streamName, $context=null, $wait=false)
 
 open ()
 
 close ()
 
 getStreamName ()
 
 getStreamContext ()
 
 _setStream ($stream)
 
 isOpened ()
 
 setStreamTimeout ($seconds, $microseconds=0)
 
 setStreamBlocking ($mode)
 
 setStreamBuffer ($buffer)
 
 disableStreamBuffer ()
 
 getStreamBufferSize ()
 
 getStreamWrapperName ()
 
 getStreamMetaData ()
 
 isBorrowing ()
 
 on ($listenerId, $callable)
 
 _notify ($ncode, $severity, $message, $code, $transferred, $max)
 
 __toString ()
 
 __destruct ()
 

Protected Member Functions

 _current ()
 
 setSocket ($socket)
 
 setTimeout ($timeout)
 
 setFlag ($flag)
 
 setContext ($context)
 
 getNodeId ($resource)
 
- Protected Member Functions inherited from Hoa\Stream\Stream
_open ($streamName, Context $context=null)
 
 _close ()
 
 getStream ()
 

Protected Attributes

 $_socket = null
 
 $_timeout = 30
 
 $_flag = 0
 
 $_context = null
 
 $_nodeName = '\Hoa\Socket\Node'
 
 $_node = null
 
 $_nodes = []
 
 $_quiet = false
 
 $_mute = false
 
 $_disconnect = true
 
 $_remote = false
 
 $_remoteAddress = null
 
 $_iterator = []
 
- Protected Attributes inherited from Hoa\Stream\Stream
 $_bucket = []
 
 $_bufferSize = 8192
 
 $_streamName = null
 
 $_context = null
 
 $_hasBeenDiffered = false
 
 $_on = null
 
 $_borrowed = false
 

Additional Inherited Members

- Static Public Member Functions inherited from Hoa\Stream\Stream
static getStreamHandler ($streamName)
 
static _Hoa_Stream ()
 
- Public Attributes inherited from Hoa\Stream\Stream
const NAME = 0
 
const HANDLER = 1
 
const RESOURCE = 2
 
const CONTEXT = 3
 

Detailed Description

Class .

Abstract connection, useful for client and server.

Definition at line 51 of file Connection.php.

Constructor & Destructor Documentation

Hoa\Socket\Connection\Connection::__construct (   $socket,
  $timeout,
  $flag,
  $context = null 
)

Start a connection.

Parameters
string$socketSocket URI.
int$timeoutTimeout.
int$flagFlag, see the child::* constants.
string$contextContext ID (please, see the class).
Returns
void

Definition at line 161 of file Connection.php.

162  {
163 
164  // Children could setSocket() before __construct.
165  if (null !== $socket) {
166  $this->setSocket($socket);
167  }
168 
169  $this->setTimeout($timeout);
170  $this->setFlag($flag);
171  $this->setContext($context);
172 
173  return;
174  }

Here is the call graph for this function:

Member Function Documentation

Hoa\Socket\Connection\Connection::_current ( )
protected

Set the current selected connection.

Returns
resource

Definition at line 220 of file Connection.php.

221  {
222  $current = current($this->_iterator);
223  $this->_setStream($current);
224 
225  return $current;
226  }
_setStream($stream)
Definition: Stream.php:399

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::connect ( )

Connect.

Returns

Definition at line 181 of file Connection.php.

182  {
183  parent::__construct(
184  $this->getSocket()->__toString(),
185  $this->getContext()
186  );
187  $this->_disconnect = false;
188 
189  return $this;
190  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::consider ( Connection  $other)
abstract

Consider another connection when selecting connection.

Parameters
\Hoa\Socket\Connection$otherOther connection.
Returns
Hoa\Socket\Connection\Connection::considerRemoteAddress (   $consider)

Whether we should consider remote address or not.

Parameters
bool$considerShould we consider remote address or not.
Returns
bool

Definition at line 415 of file Connection.php.

416  {
417  $old = $this->_remote;
418  $this->_remote = $consider;
419 
420  return $old;
421  }
Hoa\Socket\Connection\Connection::disconnect ( )

Disconnect.

Returns
void

Definition at line 332 of file Connection.php.

333  {
334  $this->_disconnect = $this->close();
335 
336  return;
337  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::enableEncryption (   $enable,
  $type = null,
  $sessionStream = null 
)

Enable or disable encryption.

Parameters
bool$enableWhether enable encryption.
int$typeType of encryption (please, see children ENCRYPTION_* constants).
resource$sessionStreamSeed the stream with settings from this session stream.
Returns
bool

Definition at line 433 of file Connection.php.

437  {
438  $currentNode = $this->getCurrentNode();
439 
440  if (null === $currentNode) {
441  return false;
442  }
443 
444  if (null === $type &&
445  null === $type = $currentNode->getEncryptionType()) {
446  return stream_socket_enable_crypto($this->getStream(), $enable);
447  }
448 
449  $currentNode->setEncryptionType($type);
450 
451  if (null === $sessionStream) {
452  return stream_socket_enable_crypto(
453  $this->getStream(),
454  $enable,
455  $type
456  );
457  }
458 
459  return stream_socket_enable_crypto(
460  $this->getStream(),
461  $enable,
462  $type,
463  $sessionStream
464  );
465  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::eof ( )

Test for end-of-file.

Returns
bool

Implements Hoa\Stream\IStream\In.

Definition at line 933 of file Connection.php.

934  {
935  return feof($this->getStream());
936  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::getBasename ( )

Get filename component of path.

Returns
string

Implements Hoa\Stream\IStream\Pathable.

Definition at line 943 of file Connection.php.

944  {
945  return basename($this->getSocket()->__toString());
946  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::getContext ( )

Get context.

Returns
string

Definition at line 518 of file Connection.php.

519  {
520  return $this->_context;
521  }

Here is the caller graph for this function:

Hoa\Socket\Connection\Connection::getCurrentNode ( )

Get current node.

Returns

Definition at line 549 of file Connection.php.

550  {
551  return $this->_node;
552  }

Here is the caller graph for this function:

Hoa\Socket\Connection\Connection::getDirname ( )

Get directory name component of path.

Returns
string

Implements Hoa\Stream\IStream\Pathable.

Definition at line 953 of file Connection.php.

954  {
955  return dirname($this->getSocket()->__toString());
956  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::getFlag ( )

Get flag.

Returns
int

Definition at line 508 of file Connection.php.

509  {
510  return $this->_flag;
511  }
Hoa\Socket\Connection\Connection::getNodeId (   $resource)
protected

Get node ID.

Parameters
resource$resourceResource.
Returns
string

Definition at line 539 of file Connection.php.

540  {
541  return md5((int) $resource);
542  }
Hoa\Socket\Connection\Connection::getNodeName ( )

Get node name.

Returns
string

Definition at line 528 of file Connection.php.

529  {
530  return $this->_nodeName;
531  }
Hoa\Socket\Connection\Connection::getNodes ( )

Get nodes list.

Returns
array

Definition at line 559 of file Connection.php.

560  {
561  return $this->_nodes;
562  }
Hoa\Socket\Connection\Connection::getRemoteAddress ( )

Get remote address.

Returns
string

Definition at line 609 of file Connection.php.

610  {
611  return $this->_remoteAddress;
612  }

Here is the caller graph for this function:

Hoa\Socket\Connection\Connection::getSocket ( )

Get socket.

Returns

Definition at line 488 of file Connection.php.

489  {
490  return $this->_socket;
491  }

Here is the caller graph for this function:

Hoa\Socket\Connection\Connection::getTimeout ( )

Get timeout.

Returns
int

Definition at line 498 of file Connection.php.

499  {
500  return $this->_timeout;
501  }
Hoa\Socket\Connection\Connection::is ( Connection  $connection)
abstract

Check if the current node belongs to a specific server.

Parameters
\Hoa\Socket\Connection$connectionConnection.
Returns
bool
Hoa\Socket\Connection\Connection::isDisconnected ( )

Check if the stream is disconnected.

Returns
bool

Definition at line 589 of file Connection.php.

590  {
591  return false !== $this->_disconnect;
592  }
Hoa\Socket\Connection\Connection::isEncrypted ( )

Check if the connection is encrypted or not.

Returns
mixed

Definition at line 472 of file Connection.php.

473  {
474  $currentNode = $this->getCurrentNode();
475 
476  if (null === $currentNode) {
477  return false;
478  }
479 
480  return null !== $currentNode->getEncryptionType();
481  }

Here is the call graph for this function:

Here is the caller graph for this function:

Hoa\Socket\Connection\Connection::isMute ( )

Check if the stream is mute.

Returns
bool

Definition at line 579 of file Connection.php.

580  {
581  return $this->_mute;
582  }
Hoa\Socket\Connection\Connection::isQuiet ( )

Check if the stream is quiet.

Returns
bool

Definition at line 569 of file Connection.php.

570  {
571  return $this->_quiet;
572  }
Hoa\Socket\Connection\Connection::isRemoteAddressConsidered ( )

Check if we should consider remote address or not.

Returns
bool

Definition at line 599 of file Connection.php.

600  {
601  return $this->_remote;
602  }

Here is the caller graph for this function:

Hoa\Socket\Connection\Connection::key ( )

Set and get the current selected connection.

Returns
Get the current selected connection index.
int

Definition at line 240 of file Connection.php.

241  {
242  return key($this->_iterator);
243  }

Here is the caller graph for this function:

Hoa\Socket\Connection\Connection::mute ( )

Disable further transmissions.

Returns
bool

Definition at line 310 of file Connection.php.

311  {
312  return $this->_mute =
313  stream_socket_shutdown($this->getStream(), STREAM_SHUT_WR);
314  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::next ( )

Advance the internal pointer of the connection iterator and return the current selected connection.

Returns
mixed

Definition at line 251 of file Connection.php.

252  {
253  return next($this->_iterator);
254  }

Here is the caller graph for this function:

Hoa\Socket\Connection\Connection::quiet ( )

Disable further receptions.

Returns
bool

Definition at line 299 of file Connection.php.

300  {
301  return $this->_quiet =
302  stream_socket_shutdown($this->getStream(), STREAM_SHUT_RD);
303  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::quietAndMute ( )

Disable further receptions and transmissions, i.e. disconnect.

Returns
bool

Definition at line 321 of file Connection.php.

322  {
323  return $this->_disconnect =
324  stream_socket_shutdown($this->getStream(), STREAM_SHUT_RDWR);
325  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::read (   $length)

Read n characters. Warning: if this method returns false, it means that the buffer is empty. You should use the Hoa::setStreamBlocking(true) method.

Parameters
int$lengthLength.
Returns
string
Exceptions

Implements Hoa\Stream\IStream\In.

Definition at line 623 of file Connection.php.

624  {
625  if (null === $this->getStream()) {
626  throw new Socket\Exception(
627  'Cannot read because socket is not established, ' .
628  'i.e. not connected.',
629  0
630  );
631  }
632 
633  if (0 > $length) {
634  throw new Socket\Exception(
635  'Length must be greater than 0, given %d.',
636  1,
637  $length
638  );
639  }
640 
641  if (true === $this->isEncrypted()) {
642  return fread($this->getStream(), $length);
643  }
644 
645  if (false === $this->isRemoteAddressConsidered()) {
646  return stream_socket_recvfrom($this->getStream(), $length);
647  }
648 
649  $out = stream_socket_recvfrom(
650  $this->getStream(),
651  $length,
652  0,
653  $address
654  );
655  $this->_remoteAddress = !empty($address) ? $address : null;
656 
657  return $out;
658  }

Here is the call graph for this function:

Here is the caller graph for this function:

Hoa\Socket\Connection\Connection::readAll (   $offset = -1)

Read all, i.e. read as much as possible.

Parameters
int$offsetOffset (not used).
Returns
string

Implements Hoa\Stream\IStream\In.

Definition at line 746 of file Connection.php.

747  {
748  return stream_get_contents($this->getStream());
749  }

Here is the call graph for this function:

Here is the caller graph for this function:

Hoa\Socket\Connection\Connection::readArray (   $format = null)

Read an array. Alias of the $this->scanf() method.

Parameters
string$formatFormat (see printf's formats).
Returns
array

Implements Hoa\Stream\IStream\In.

Definition at line 721 of file Connection.php.

722  {
723  return $this->scanf($format);
724  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::readBoolean ( )

Read a boolean.

Returns
bool

Implements Hoa\Stream\IStream\In.

Definition at line 687 of file Connection.php.

688  {
689  return (bool) $this->read(1);
690  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::readCharacter ( )

Read a character. It is equivalent to $this->read(1).

Returns
string

Implements Hoa\Stream\IStream\In.

Definition at line 677 of file Connection.php.

678  {
679  return $this->read(1);
680  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::readFloat (   $length = 1)

Read a float.

Parameters
int$lengthLength.
Returns
float

Implements Hoa\Stream\IStream\In.

Definition at line 709 of file Connection.php.

710  {
711  return (float) $this->read($length);
712  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::readInteger (   $length = 1)

Read an integer.

Parameters
int$lengthLength.
Returns
int

Implements Hoa\Stream\IStream\In.

Definition at line 698 of file Connection.php.

699  {
700  return (int) $this->read($length);
701  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::readLine ( )

Read a line.

Returns
string

Implements Hoa\Stream\IStream\In.

Definition at line 731 of file Connection.php.

732  {
733  if (true === $this->isEncrypted()) {
734  return rtrim(fgets($this->getStream(), 1 << 15), "\n");
735  }
736 
737  return stream_get_line($this->getStream(), 1 << 15, "\n");
738  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::readString (   $length)

Alias of $this->read().

Parameters
int$lengthLength.
Returns
string

Implements Hoa\Stream\IStream\In.

Definition at line 666 of file Connection.php.

667  {
668  return $this->read($length);
669  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::rewind ( )

Rewind the internal iterator pointer and the first connection.

Returns
mixed

Definition at line 261 of file Connection.php.

262  {
263  return reset($this->_iterator);
264  }
Hoa\Socket\Connection\Connection::scanf (   $format)

Parse input from a stream according to a format.

Parameters
string$formatFormat (see printf's formats).
Returns
array

Implements Hoa\Stream\IStream\In.

Definition at line 757 of file Connection.php.

758  {
759  return sscanf($this->readAll(), $format);
760  }

Here is the call graph for this function:

Here is the caller graph for this function:

Hoa\Socket\Connection\Connection::select ( )
abstract

Select connections.

Returns
Hoa\Socket\Connection\Connection::setContext (   $context)
protected

Set context.

Parameters
string$contextContext ID.
Returns
string

Definition at line 387 of file Connection.php.

388  {
389  $old = $this->_context;
390  $this->_context = $context;
391 
392  return $old;
393  }

Here is the caller graph for this function:

Hoa\Socket\Connection\Connection::setFlag (   $flag)
protected

Set flag.

Parameters
int$flagFlag.
Returns
int

Definition at line 373 of file Connection.php.

374  {
375  $old = $this->_flag;
376  $this->_flag = $flag;
377 
378  return $old;
379  }

Here is the caller graph for this function:

Hoa\Socket\Connection\Connection::setNodeName (   $node)

Set node name.

Parameters
string$nodeNode name.
Returns
string

Definition at line 401 of file Connection.php.

402  {
403  $old = $this->_nodeName;
404  $this->_nodeName = $node;
405 
406  return $old;
407  }
Hoa\Socket\Connection\Connection::setSocket (   $socket)
protected

Set socket.

Parameters
string$socketSocket URI.
Returns

Definition at line 345 of file Connection.php.

346  {
347  $old = $this->_socket;
348  $this->_socket = new Socket($socket);
349 
350  return $old;
351  }

Here is the caller graph for this function:

Hoa\Socket\Connection\Connection::setTimeout (   $timeout)
protected

Set timeout.

Parameters
int$timeoutTimeout.
Returns
int

Definition at line 359 of file Connection.php.

360  {
361  $old = $this->_timeout;
362  $this->_timeout = $timeout;
363 
364  return $old;
365  }

Here is the caller graph for this function:

Hoa\Socket\Connection\Connection::truncate (   $size)

Truncate a file to a given length.

Parameters
int$sizeSize.
Returns
bool

Implements Hoa\Stream\IStream\Out.

Definition at line 923 of file Connection.php.

924  {
925  return false;
926  }
Hoa\Socket\Connection\Connection::valid ( )

Check if there is a current connection after calls to the rewind() or the next() methods.

Returns
bool

Definition at line 272 of file Connection.php.

273  {
274  if (empty($this->_iterator)) {
275  return false;
276  }
277 
278  $key = key($this->_iterator);
279  $return = (bool) next($this->_iterator);
280  prev($this->_iterator);
281 
282  if (false === $return) {
283  end($this->_iterator);
284  if ($key === key($this->_iterator)) {
285  $return = true;
286  } else {
287  $this->_iterator = [];
288  }
289  }
290 
291  return $return;
292  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::write (   $string,
  $length 
)

Write n characters.

Parameters
string$stringString.
int$lengthLength.
Returns
mixed
Exceptions

Implements Hoa\Stream\IStream\Out.

Definition at line 770 of file Connection.php.

771  {
772  if (null === $this->getStream()) {
773  throw new Socket\Exception(
774  'Cannot write because socket is not established, ' .
775  'i.e. not connected.',
776  2
777  );
778  }
779 
780  if (0 > $length) {
781  throw new Socket\Exception(
782  'Length must be greater than 0, given %d.',
783  3,
784  $length
785  );
786  }
787 
788  if (strlen($string) > $length) {
789  $string = substr($string, 0, $length);
790  }
791 
792  if (true === $this->isEncrypted()) {
793  $out = fwrite($this->getStream(), $string, $length);
794  } else {
795  if (false === $this->isRemoteAddressConsidered() ||
796  null === $remote = $this->getRemoteAddress()) {
797  $out = @stream_socket_sendto($this->getStream(), $string);
798  } else {
799  $out = @stream_socket_sendto(
800  $this->getStream(),
801  $string,
802  0,
803  $remote
804  );
805  }
806  }
807 
808  if (-1 === $out) {
809  throw new Socket\Exception('Pipe is broken, cannot write data.', 4);
810  }
811 
812  return $out;
813  }

Here is the call graph for this function:

Here is the caller graph for this function:

Hoa\Socket\Connection\Connection::writeAll (   $string)

Write all, i.e. as much as possible.

Parameters
string$stringString.
Returns
mixed

Implements Hoa\Stream\IStream\Out.

Definition at line 912 of file Connection.php.

913  {
914  return $this->write($string, strlen($string));
915  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::writeArray ( Array  $array)

Write an array.

Parameters
array$arrayArray.
Returns
mixed

Implements Hoa\Stream\IStream\Out.

Definition at line 899 of file Connection.php.

900  {
901  $array = serialize($array);
902 
903  return $this->write($array, strlen($array));
904  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::writeBoolean (   $boolean)

Write a boolean.

Parameters
bool$booleanBoolean.
Returns
mixed

Implements Hoa\Stream\IStream\Out.

Definition at line 845 of file Connection.php.

846  {
847  return $this->write((string) (bool) $boolean, 1);
848  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::writeCharacter (   $char)

Write a character.

Parameters
string$charCharacter.
Returns
mixed

Implements Hoa\Stream\IStream\Out.

Definition at line 834 of file Connection.php.

835  {
836  return $this->write((string) $char[0], 1);
837  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::writeFloat (   $float)

Write a float.

Parameters
float$floatFloat.
Returns
mixed

Implements Hoa\Stream\IStream\Out.

Definition at line 869 of file Connection.php.

870  {
871  $float = (string) (float) $float;
872 
873  return $this->write($float, strlen($float));
874  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::writeInteger (   $integer)

Write an integer.

Parameters
int$integerInteger.
Returns
mixed

Implements Hoa\Stream\IStream\Out.

Definition at line 856 of file Connection.php.

857  {
858  $integer = (string) (int) $integer;
859 
860  return $this->write($integer, strlen($integer));
861  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::writeLine (   $line)

Write a line.

Parameters
string$lineLine.
Returns
mixed

Implements Hoa\Stream\IStream\Out.

Definition at line 882 of file Connection.php.

883  {
884  if (false === $n = strpos($line, "\n")) {
885  return $this->write($line . "\n", strlen($line) + 1);
886  }
887 
888  ++$n;
889 
890  return $this->write(substr($line, 0, $n), $n);
891  }

Here is the call graph for this function:

Hoa\Socket\Connection\Connection::writeString (   $string)

Write a string.

Parameters
string$stringString.
Returns
mixed

Implements Hoa\Stream\IStream\Out.

Definition at line 821 of file Connection.php.

822  {
823  $string = (string) $string;
824 
825  return $this->write($string, strlen($string));
826  }

Here is the call graph for this function:

Member Data Documentation

Hoa\Socket\Connection\Connection::$_context = null
protected

Definition at line 84 of file Connection.php.

Hoa\Socket\Connection\Connection::$_disconnect = true
protected

Definition at line 126 of file Connection.php.

Hoa\Socket\Connection\Connection::$_flag = 0
protected

Definition at line 77 of file Connection.php.

Hoa\Socket\Connection\Connection::$_iterator = []
protected

Definition at line 147 of file Connection.php.

Hoa\Socket\Connection\Connection::$_mute = false
protected

Definition at line 119 of file Connection.php.

Hoa\Socket\Connection\Connection::$_node = null
protected

Definition at line 98 of file Connection.php.

Hoa\Socket\Connection\Connection::$_nodeName = '\Hoa\Socket\Node'
protected

Definition at line 91 of file Connection.php.

Hoa\Socket\Connection\Connection::$_nodes = []
protected

Definition at line 105 of file Connection.php.

Hoa\Socket\Connection\Connection::$_quiet = false
protected

Definition at line 112 of file Connection.php.

Hoa\Socket\Connection\Connection::$_remote = false
protected

Definition at line 133 of file Connection.php.

Hoa\Socket\Connection\Connection::$_remoteAddress = null
protected

Definition at line 140 of file Connection.php.

Hoa\Socket\Connection\Connection::$_socket = null
protected

Definition at line 63 of file Connection.php.

Hoa\Socket\Connection\Connection::$_timeout = 30
protected

Definition at line 70 of file Connection.php.


The documentation for this class was generated from the following file: