Skip to content

Commit 01132b1

Browse files
committed
[PHP 8.4] sockets constant list update
1 parent 0c2a0d7 commit 01132b1

File tree

1 file changed

+157
-0
lines changed

1 file changed

+157
-0
lines changed

reference/sockets/constants.xml

+157
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,54 @@
103103
</simpara>
104104
</listitem>
105105
</varlistentry>
106+
<varlistentry xml:id="constant.sock-conn-dgram">
107+
<term>
108+
<constant>SOCK_CONN_DGRAM</constant>
109+
(<type>int</type>)
110+
</term>
111+
<listitem>
112+
<simpara>
113+
Set the socket to a connection-oriented datagram.
114+
Available as of PHP 8.4.0 (NetBSD only)
115+
</simpara>
116+
</listitem>
117+
</varlistentry>
118+
<varlistentry xml:id="constant.sock-dccp">
119+
<term>
120+
<constant>SOCK_DCCP</constant>
121+
(<type>int</type>)
122+
</term>
123+
<listitem>
124+
<simpara>
125+
Set the socket to a datagram congestion control protocol.
126+
Available as of PHP 8.4.0 (NetBSD only)
127+
</simpara>
128+
</listitem>
129+
</varlistentry>
130+
<varlistentry xml:id="constant.sock-non-block">
131+
<term>
132+
<constant>SOCK_NON_BLOCK</constant>
133+
(<type>int</type>)
134+
</term>
135+
<listitem>
136+
<simpara>
137+
Set the non-blocking socket status flag.
138+
Available as of PHP 8.4.0
139+
</simpara>
140+
</listitem>
141+
</varlistentry>
142+
<varlistentry xml:id="constant.sock-cloexec">
143+
<term>
144+
<constant>SOCK_CLOEXEC</constant>
145+
(<type>int</type>)
146+
</term>
147+
<listitem>
148+
<simpara>
149+
Set the close-on-exec socket status flag.
150+
Available as of PHP 8.4.0
151+
</simpara>
152+
</listitem>
153+
</varlistentry>
106154
<varlistentry xml:id="constant.msg-oob">
107155
<term>
108156
<constant>MSG_OOB</constant>
@@ -2760,6 +2808,54 @@
27602808
</simpara>
27612809
</listitem>
27622810
</varlistentry>
2811+
<varlistentry xml:id="constant.ip-portrange">
2812+
<term>
2813+
<constant>IP_PORTRANGE</constant>
2814+
(<type>int</type>)
2815+
</term>
2816+
<listitem>
2817+
<simpara>
2818+
Set the port range used for selecting a local port number.
2819+
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
2820+
</simpara>
2821+
</listitem>
2822+
</varlistentry>
2823+
<varlistentry xml:id="constant.ip-portrange-default">
2824+
<term>
2825+
<constant>IP_PORTRANGE_DEFAULT</constant>
2826+
(<type>int</type>)
2827+
</term>
2828+
<listitem>
2829+
<simpara>
2830+
Use the default range of port values.
2831+
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
2832+
</simpara>
2833+
</listitem>
2834+
</varlistentry>
2835+
<varlistentry xml:id="constant.ip-portrange-high">
2836+
<term>
2837+
<constant>IP_PORTRANGE_HIGH</constant>
2838+
(<type>int</type>)
2839+
</term>
2840+
<listitem>
2841+
<simpara>
2842+
Use a high range of port values.
2843+
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
2844+
</simpara>
2845+
</listitem>
2846+
</varlistentry>
2847+
<varlistentry xml:id="constant.ip-portrange-low">
2848+
<term>
2849+
<constant>IP_PORTRANGE_LOW</constant>
2850+
(<type>int</type>)
2851+
</term>
2852+
<listitem>
2853+
<simpara>
2854+
Use a low range of port values.
2855+
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
2856+
</simpara>
2857+
</listitem>
2858+
</varlistentry>
27632859
<varlistentry xml:id="constant.mcast-block-source">
27642860
<term>
27652861
<constant>MCAST_BLOCK_SOURCE</constant>
@@ -3000,6 +3096,67 @@
30003096
</simpara>
30013097
</listitem>
30023098
</varlistentry>
3099+
<varlistentry xml:id="constant.so-exclusiveaddr">
3100+
<term>
3101+
<constant>SO_EXCLUSIVEADDR</constant>
3102+
(<type>int</type>)
3103+
</term>
3104+
<listitem>
3105+
<simpara>
3106+
Prevents other sockets from being forcibly bound to the same address and port.
3107+
Available as of PHP 8.4.0 (Windows only)
3108+
</simpara>
3109+
</listitem>
3110+
</varlistentry>
3111+
<varlistentry xml:id="constant.so-exclbind">
3112+
<term>
3113+
<constant>SO_EXCLBIND</constant>
3114+
(<type>int</type>)
3115+
</term>
3116+
<listitem>
3117+
<simpara>
3118+
Enable/disable exclusive binding of the socket.
3119+
Available as of PHP 8.4.0 (Solaris only)
3120+
</simpara>
3121+
</listitem>
3122+
</varlistentry>
3123+
<varlistentry xml:id="constant.so-nosigpipe">
3124+
<term>
3125+
<constant>SO_NOSIGPIPE</constant>
3126+
(<type>int</type>)
3127+
</term>
3128+
<listitem>
3129+
<simpara>
3130+
Controls generation of SIGPIPE for the socket.
3131+
Available as of PHP 8.4.0 (macOs and FreeBSD only)
3132+
</simpara>
3133+
</listitem>
3134+
</varlistentry>
3135+
<varlistentry xml:id="constant.so-linger-sec">
3136+
<term>
3137+
<constant>SO_LINGER_SEC</constant>
3138+
(<type>int</type>)
3139+
</term>
3140+
<listitem>
3141+
<simpara>
3142+
Similar to <constant>SO_LINGER</constant> but lingering is in seconds
3143+
as opposed to time clicks on macOs.
3144+
Available as of PHP 8.4.0 (macOs only)
3145+
</simpara>
3146+
</listitem>
3147+
</varlistentry>
3148+
<varlistentry xml:id="constant.so-bindtoifindex">
3149+
<term>
3150+
<constant>SO_BINDTOIFINDEX</constant>
3151+
(<type>int</type>)
3152+
</term>
3153+
<listitem>
3154+
<simpara>
3155+
Bind a socket to a specific network interface by its index.
3156+
Available as of PHP 8.4.0
3157+
</simpara>
3158+
</listitem>
3159+
</varlistentry>
30033160
</variablelist>
30043161

30053162
</appendix>

0 commit comments

Comments
 (0)