public function close()
    {
        $this->_connected = false;
        $this->_handler->disconnect();
        socket_close($this->_socket);
        $this->_socket = false;
    }
public function close()
    {
        $this->_connected = false;
        $this->_handler->disconnect();
        socket_close($this->_socket);
        $this->_socket = false;
    }
public function close ( ) { $ this -> _connected = false ; $ this -> _handler -> disconnect ( ) ; socket_close ( $ this -> _socket ) ; $ this -> _socket = false ; }
Call this to close the connection.

@return void
Call this to close the connection .