Net_Socket::setBlocking()

Net_Socket::setBlocking() -- sets blocking mode

Synopsis

require_once 'Net/Socket.php';

boolean Net_Socket::setBlocking (boolean $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.

Параметр

Возвращаемое значение

Throws

Таблица 49-1. Возможные значения PEAR_Error

Error codeError messageReasonSolution
NULL"not connected" There is no open connection. You must establish a connection before ( Net_Socket::connect()).

Заметка

Эта функция не должна вызываться статически.

См. также

Net_Socket::isBlocking()


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ