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

Net_Socket::setBlocking ( mode  ) 

Sets whether the socket connection should be blocking or not. A read call to a non-blocking socket will return immediately if there is no data available, whereas it will block until there is data for blocking sockets.

Parameters:
boolean $mode True for blocking sockets, false for nonblocking. public
Returns:
mixed true on success or an error object otherwise

Definition at line 191 of file Socket.php.

Referenced by connect().

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

        $this->blocking = $mode;
        socket_set_blocking($this->fp, $this->blocking);
        return true;
    }


Generated by  Doxygen 1.6.0   Back to index