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

        $this->blocking = $mode;
        stream_set_blocking($this->fp, (int)$this->blocking);

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

        $this->blocking = $mode;
        stream_set_blocking($this->fp, (int)$this->blocking);

        return true;
    }
public function setBlocking ( $ mode ) { if ( ! is_resource ( $ this -> fp ) ) { return $ this -> raiseError ( 'not connected' ) ; } $ this -> blocking = $ mode ; stream_set_blocking ( $ this -> fp , ( int ) $ this -> blocking ) ; return true ; }
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.

@param boolean $mode True for blocking sockets, false for nonblocking.

@access public
@return mixed true on success or a PEAR_Error instance otherwise
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 .