public function close()
    {
        $this->_open = false;
        $this->_peers = array();
        $this->_peersSockets = array();
        $this->_peersLastDataReceived = array();
        $this->_handler->close();
        socket_close($this->_socket);
        $this->_socket = false;
    }
public function close()
    {
        $this->_open = false;
        $this->_peers = array();
        $this->_peersSockets = array();
        $this->_peersLastDataReceived = array();
        $this->_handler->close();
        socket_close($this->_socket);
        $this->_socket = false;
    }
public function close ( ) { $ this -> _open = false ; $ this -> _peers = array ( ) ; $ this -> _peersSockets = array ( ) ; $ this -> _peersLastDataReceived = array ( ) ; $ this -> _handler -> close ( ) ; socket_close ( $ this -> _socket ) ; $ this -> _socket = false ; }
Call this to close the server.

@return void
Call this to close the server .