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

Net_Socket::readString (  ) 

Reads a zero-terminated string of data

public

Returns:
string, or a PEAR_Error if not connected.

Definition at line 423 of file Socket.php.

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

        $string = '';
        while (($char = @fread($this->fp, 1)) != "\x00")  {
            $string .= $char;
        }
        return $string;
    }


Generated by  Doxygen 1.6.0   Back to index