|
PHP5中文手册
socket_listen(PHP 4 >= 4.0.7, PHP 5) socket_listen — Listens for a connection on a socket 说明
bool socket_listen
( resource $socket
[, int $backlog
] )
After the socket socket has been created using socket_create() and bound to a name with socket_bind(), it may be told to listen for incoming connections on socket . socket_listen() is applicable only to sockets of type SOCK_STREAM or SOCK_SEQPACKET. 参数
返回值如果成功则返回 TRUE,失败则返回 FALSE。 The error code can be retrieved with socket_last_error(). This code may be passed to socket_strerror() to get a textual explanation of the error. |