• PHP Video Tutorials

PHP - Function socket set blocking



Syntax

bool stream_set_blocking ( resource $stream , int $mode )

Definition and Usage

It is an alias of stream_set_blocking(), It has block or unblock options for stream mode

Return Values

It returns true on success or else false on failure

Parameters

Sr.No Parameters & Description
1

stream

It contains stream information.

2

mode

If mode is 0, the given stream will be switched to non-blocking mode, and if 1, it will be switched to blocking mode.

php_function_reference.htm
Advertisements