Net_Socket::setBlocking()

Net_Socket::setBlocking()

Net_Socket::setBlocking() -- sets blocking mode

Description

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.

Parameter

  • boolean $mode - TRUE for blocking sockets, FALSE for non blocking

Return value

  • boolean - Returns TRUE on success, PEAR_Error on failure.

Note

This function can not be called statically.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.