language/context/socket.xml
ec6e871a47fa15228aa3299f46fed826422adbc0
...
...
@@ -1,7 +1,7 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
3

4
-
<refentry xml:id="context.socket" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" role="noversion">
4
+
<refentry xml:id="context.socket" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" annotations="verify_info:false">
5
5
<refnamediv>
6
6
<refname>Socket context options</refname>
7
7
<refpurpose>Socket context option listing</refpurpose>
...
...
@@ -53,6 +53,58 @@
53
53
</note>
54
54
</listitem>
55
55
</varlistentry>
56
+
<varlistentry xml:id="context.socket.ipv6_v6only">
57
+
<term><parameter>ipv6_v6only</parameter></term>
58
+
<listitem>
59
+
<para>
60
+
Overrides the OS default regarding mapping IPv4 into IPv6.
61
+
</para>
62
+
<note>
63
+
<para>
64
+
This is important in particular when trying to listen on IPv4 addresses
65
+
separately while there exists a binding on <literal>[::]</literal>.
66
+
</para>
67
+
<para>
68
+
This is only applicable to <function>stream_socket_server</function>.
69
+
</para>
70
+
</note>
71
+
</listitem>
72
+
</varlistentry>
73
+
<varlistentry xml:id="context.socket.so_reuseport">
74
+
<term><parameter>so_reuseport</parameter></term>
75
+
<listitem>
76
+
<para>
77
+
Allows multiple bindings to a same ip:port pair, even from separate processes.
78
+
</para>
79
+
<note>
80
+
<para>
81
+
This is only applicable to <function>stream_socket_server</function>.
82
+
</para>
83
+
</note>
84
+
</listitem>
85
+
</varlistentry>
86
+
<varlistentry xml:id="context.socket.so_broadcast">
87
+
<term><parameter>so_broadcast</parameter></term>
88
+
<listitem>
89
+
<para>
90
+
Enables sending and receiving data to/from broadcast addresses.
91
+
</para>
92
+
<note>
93
+
<para>
94
+
This is only applicable to <function>stream_socket_server</function>.
95
+
</para>
96
+
</note>
97
+
</listitem>
98
+
</varlistentry>
99
+
<varlistentry xml:id="context.socket.tcp_nodelay">
100
+
<term><parameter>tcp_nodelay</parameter></term>
101
+
<listitem>
102
+
<para>
103
+
Setting this option to &true; will set <literal>SOL_TCP,NO_DELAY=1</literal>
104
+
appropriately, thus disabling the TCP Nagle algorithm.
105
+
</para>
106
+
</listitem>
107
+
</varlistentry>
56
108
</variablelist>
57
109
</para>
58
110
</refsect1><!-- }}} -->
...
...
@@ -70,15 +122,15 @@
70
122
</thead>
71
123
<tbody>
72
124
<row>
73
-
<entry>5.3.3</entry>
125
+
<entry>7.1.0</entry>
74
126
<entry>
75
-
Added <literal>backlog</literal>.
127
+
Added <parameter>tcp_nodelay</parameter>.
76
128
</entry>
77
129
</row>
78
130
<row>
79
-
<entry>5.1.0</entry>
131
+
<entry>7.0.1</entry>
80
132
<entry>
81
-
Added <literal>bindto</literal>.
133
+
Added <parameter>ipv6_v6only</parameter>.
82
134
</entry>
83
135
</row>
84
136
</tbody>
85
137