From 5ccc50311d9776ced4bf5e176c9c8fb6ab554083 Mon Sep 17 00:00:00 2001 From: Markus Fischer Date: Wed, 1 May 2002 09:30:47 +0000 Subject: [PATCH] - Initial documentation. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@80717 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/socket-create-listen.xml | 39 ++++++++++++++++++- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/reference/sockets/functions/socket-create-listen.xml b/reference/sockets/functions/socket-create-listen.xml index 120ba8a7f4..4c2cd263d3 100644 --- a/reference/sockets/functions/socket-create-listen.xml +++ b/reference/sockets/functions/socket-create-listen.xml @@ -1,5 +1,5 @@ - + @@ -15,7 +15,42 @@ &warn.experimental.func; - &warn.undocumented.func; + This function is meant to ease the task of creating a new socket which + only listens to accept new connections. + + + socket_create_listen create a new socket resource of + type AF_INET listening on all + local interfaces on the given port waiting for new connections. + + + The backlog parameter defines the maximum length + the queue of pending connections may grow to. + SOMAXCONN may be passed as + backlog parameter, see + socket_listen for more information. + + + socket_create_listen returns a new socket resource + on success or &false; on error. 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. + + + + If you want to create a socket which only listens on a certain + interfaces you need to use socket_create, + socket_bind and socket_listen. + + + + See also + socket_create, + socket_bind, + socket_listen, + socket_last_error and + socket_strerror.