set_socket_blocking

Syntax

int set_socket_blocking(int socket_descriptor, int mode);

Popis

Príkaz jazyka PHP
set_socket_blocking - Set blocking/non-blocking mode on a socket

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.