Gen. partnerAlgotech

PHP function set_socket_blocking()

|
September 11, 2019

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.

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.