Net/Socket.php
public function disconnect()
    {
        if (!is_resource($this->fp)) {
            return $this->raiseError('not connected');
        }

        @fclose($this->fp);
        $this->fp = null;

        return true;
    }
public function disconnect()
    {
        if (!is_resource($this->fp)) {
            return $this->raiseError('not connected');
        }

        @fclose($this->fp);
        $this->fp = null;

        return true;
    }
public function disconnect ( ) { if ( ! is_resource ( $ this -> fp ) ) { return $ this -> raiseError ( 'not connected' ) ; } @ fclose ( $ this -> fp ) ; $ this -> fp = null ; return true ; }
Disconnects from the peer, closes the socket.

@access public
@return mixed true on success or a PEAR_Error instance otherwise
Disconnects from the peer closes the socket .