From 63a98c4c1192eb9d9e58b45f657da5fad827db58 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Wed, 19 Oct 2016 11:06:56 +0000 Subject: [PATCH] Add documentation for so_reuseport, so_broadcast and ipv6_v6only socket stream context options git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340564 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/context/socket.xml | 61 +++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/language/context/socket.xml b/language/context/socket.xml index 9c9689855b..0c42aa5049 100644 --- a/language/context/socket.xml +++ b/language/context/socket.xml @@ -53,6 +53,49 @@ + + ipv6_v6only + + + Overrides the OS default regarding mapping IPv4 into IPv6. + + + + This is important in particular when trying to listen on IPv4 addresses + separately while there exists a binding on [::]. + + + This is only applicable to stream_socket_server. + + + + + + so_reuseport + + + Allows multiple bindings to a same ip:port pair, even from separate processes. + + + + This is only applicable to stream_socket_server. + + + + + + so_broadcast + + + Enables sending and receiving data to/from broadcast addresses. + + + + This is only applicable to stream_socket_server. + + + + @@ -69,6 +112,24 @@ + + 7.0.1 + + Added ipv6_v6only. + + + + 7.0.0 + + Added so_broadcast. + + + + 7.0.0 + + Added so_reuseport. + + 5.3.3