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

Net_Socket::getStatus (  ) 

Returns information about an existing socket resource. Currently returns four entries in the result array:

timed_out (bool) - The socket timed out waiting for data
blocked (bool) - The socket was blocked
eof (bool) - Indicates EOF event
unread_bytes (int) - Number of bytes left in the socket buffer

public

Returns:
mixed Array containing information about existing socket resource or an error object otherwise

Definition at line 255 of file Socket.php.

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

        return socket_get_status($this->fp);
    }


Generated by  Doxygen 1.6.0   Back to index