PHP Wysardry
PHP Manual

PHP documentation.



Home / PHP / Manual / ...



PHP Manual
Prev Next

socket_set_blocking

(PHP 4 >= 4.0.0)

socket_set_blocking -- Set blocking/non-blocking mode on a socket

Description

int socket_set_blocking (int socket descriptor, int mode)

If mode is FALSE, the given socket descriptor will be switched to non-blocking mode, and if TRUE, it will be switched to blocking mode. This affects calls like fgets() that read from the socket. In non-blocking mode an fgets() call will always return right away while in blocking mode it will wait for data to become available on the socket.

This function was previously called as set_socket_blocking() but this usage is deprecated.


Prev Manual Home Next
socket_get_status Up socket_set_timeout
Site Menu

Amazon.ca
Amazon.com
Amazon.co.uk



Most recently updated on 11 May, 2003

Home / PHP / Manual / ...



Please feel free to contact us with any comments or suggestions
PHP Manual
PHP Wysardry

This site is hosted by Spaceports