Network\Client::__construct PHP Method

__construct() public method

Constructs a new client connection.
public __construct ( resource $socket ) : void
$socket resource Socket connection.
return void
    public function __construct($socket)
    {
        parent::__construct($socket);
        if (false === $this->_connect()) {
            throw_socket_error();
        }
    }