Logo Search packages:      
Sourcecode: egroupware-egw-pear version File versions  Download package

Net_Socket::readAll (  ) 

Read until the socket closes, or until there is no more data in the inner PHP buffer. If the inner buffer is empty, in blocking mode we wait for at least 1 byte of data. Therefore, in blocking mode, if there is no data at all to be read, this function will never exit (unless the socket is closed on the remote end).


string All data until the socket closes, or a PEAR_Error if not connected.

Definition at line 496 of file Socket.php.

        if (!is_resource($this->fp)) {
            return $this->raiseError('not connected');

        $data = '';
        while (!feof($this->fp)) {
            $data .= @fread($this->fp, $this->lineLength);
        return $data;

Generated by  Doxygen 1.6.0   Back to index