PHP function set_socket_blocking()

Availability in PHP 4.0

&Alias; stream_set_blocking

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.

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.