PHP function set_socket_blocking()
Availability in PHP 4.0
&Alias;
Sets blocking or non-blocking mode on a stream. This function works for any stream that supports non-blocking mode (currently, regular files and socket streams).
Parameters
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$socket |
resource |
not | |
$mode |
int |
not |
Return values
bool
Returns true on success, otherwise false on failure.