Network\Client::_connect PHP Method

_connect() protected method

Establishes the socket connection.
protected _connect ( ) : boolean
return boolean
    protected function _connect()
    {
        $this->_socket = @socket_accept($this->_socket);
        if (false === $this->_socket) {
            return false;
        }
        socket_set_nonblock($this->_socket);
        return true;
    }