public function close()
    {
        if (!$this->connected) {
            return false;
        }

        $this->connected = false;
        fclose($this->socket);

        return true;
    }
public function close()
    {
        if (!$this->connected) {
            return false;
        }

        $this->connected = false;
        fclose($this->socket);

        return true;
    }
public function close ( ) { if ( ! $ this -> connected ) { return false ; } $ this -> connected = false ; fclose ( $ this -> socket ) ; return true ; }
Closes the socket.

@return boolean
Closes the socket .