diff --git a/reference/stream/constants.xml b/reference/stream/constants.xml index ac50847863..804a3e560e 100644 --- a/reference/stream/constants.xml +++ b/reference/stream/constants.xml @@ -1,5 +1,5 @@ - +
&reftitle.constants; &extension.constants; @@ -95,7 +95,9 @@ STREAM_SERVER_LISTEN * Tells a stream created with stream_socket_server and bound using the STREAM_SERVER_BIND flag to start - listening on the socket. TCP Server sockets should always include this flag. + listening on the socket. Connection-orientated transports (such as TCP) + must use this flag, otherwise the server socket will not be enabled. + Using this flag for connect-less transports (such as UDP) is an error. diff --git a/reference/stream/functions/stream-socket-accept.xml b/reference/stream/functions/stream-socket-accept.xml index 9ca394aaef..d920c55272 100644 --- a/reference/stream/functions/stream-socket-accept.xml +++ b/reference/stream/functions/stream-socket-accept.xml @@ -1,5 +1,5 @@ - + stream_socket_accept @@ -31,13 +31,13 @@ If the call fails, it will return &false;. - + - This function doens't work with UDP server sockets. Use + Using this function with UDP server sockets is an error. You should use stream_socket_recvfrom and stream_socket_sendto instead. - + See also stream_socket_server, stream_socket_get_name, diff --git a/reference/stream/functions/stream-socket-recvfrom.xml b/reference/stream/functions/stream-socket-recvfrom.xml index 49958ca5a3..08a3ed8363 100644 --- a/reference/stream/functions/stream-socket-recvfrom.xml +++ b/reference/stream/functions/stream-socket-recvfrom.xml @@ -1,5 +1,5 @@ - + stream_socket_recvfrom @@ -73,6 +73,13 @@ fclose($server); ]]> + + + If a message received is longer than the length + parameter, excess bytes may be discarded depending on the type of socket + the message is received from (such as UDP). + + See also stream_socket_sendto,