public function disconnect()
    {
        if ($this->socket !== NULL) {
            @fclose($this->socket);
        }

        $this->socket = NULL;
        $this->indexes = array();
        $this->currentIndex = 1;
    }
public function disconnect()
    {
        if ($this->socket !== NULL) {
            @fclose($this->socket);
        }

        $this->socket = NULL;
        $this->indexes = array();
        $this->currentIndex = 1;
    }
public function disconnect ( ) { if ( $ this -> socket !== NULL ) { @ fclose ( $ this -> socket ) ; } $ this -> socket = NULL ; $ this -> indexes = array ( ) ; $ this -> currentIndex = 1 ; }
Disconnect from server
Disconnect from server