diff --git a/reference/stream/functions/stream-socket-accept.xml b/reference/stream/functions/stream-socket-accept.xml index 746929195b..1daf6c7c5a 100644 --- a/reference/stream/functions/stream-socket-accept.xml +++ b/reference/stream/functions/stream-socket-accept.xml @@ -1,12 +1,13 @@ - + stream_socket_accept Accept a connection on a socket created by stream_socket_server - - Description + + + &reftitle.description; resourcestream_socket_accept resourceserver_socket @@ -15,20 +16,51 @@ Accept a connection on a socket previously created by - stream_socket_server. If - timeout is specified, the default - socket accept timeout will be overridden with the time - specified in seconds. The name (address) of the client - which connected will be passed back in peername - if included and available from the selected transport. + stream_socket_server. - - peername can also be determined later - using stream_socket_get_name. - - - If the call fails, it will return &false;. - + + + + &reftitle.parameters; + + + + timeout + + + Override the default socket accept timeout. Time should be given in + seconds. + + + + + peername + + + Will be set to the name (address) of the client which connected, if + included and available from the selected transport. + + + + Can also be determined later using + stream_socket_get_name. + + + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.notes; This function should not be used with UDP server sockets. Instead, use @@ -36,17 +68,26 @@ stream_socket_sendto. + + + + &reftitle.seealso; - See also stream_socket_server, - stream_socket_get_name, - stream_set_blocking, - stream_set_timeout, - fgets, - fgetss, fwrite, - fclose, feof, and - the Curl extension. + + stream_socket_server + stream_socket_get_name + stream_set_blocking + stream_set_timeout + fgets + fgetss + fwrite + fclose + feof + + - + +