socket_accept
(PHP 4 >= 4.1.0, PHP 5)
socket_accept — Accepts a connection on a socket
Описание
resource socket_accept
( resource $socket
)
The socket resource returned by
socket_accept() may not be used to accept new
connections. The original listening socket
socket
, however, remains open and may be
reused.
Список параметров
-
socket
-
A valid socket resource created with socket_create().
Возвращаемые значения
Returns a new socket resource on success, or FALSE on error. The actual
error code can be retrieved by calling
socket_last_error(). This error code may be passed to
socket_strerror() to get a textual explanation of the
error.