Skip to content

Commit 8cc87f5

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

File tree

1 file changed

+170
-0
lines changed

1 file changed

+170
-0
lines changed

reference/sockets/constants.xml

+170
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>
@@ -710,6 +758,19 @@
710758
</simpara>
711759
</listitem>
712760
</varlistentry>
761+
<varlistentry xml:id="constant.tcp-keepcnt">
762+
<term>
763+
<constant>TCP_KEEPCNT</constant>
764+
(<type>int</type>)
765+
</term>
766+
<listitem>
767+
<simpara>
768+
The maximum number of keepalive probes TCP should send
769+
before dropping the connection.
770+
Available as of PHP 8.4.0 (Linux only)
771+
</simpara>
772+
</listitem>
773+
</varlistentry>
713774
<varlistentry xml:id="constant.ip-dontfrag">
714775
<term>
715776
<constant>IP_DONTFRAG</constant>
@@ -2760,6 +2821,54 @@
27602821
</simpara>
27612822
</listitem>
27622823
</varlistentry>
2824+
<varlistentry xml:id="constant.ip-portrange">
2825+
<term>
2826+
<constant>IP_PORTRANGE</constant>
2827+
(<type>int</type>)
2828+
</term>
2829+
<listitem>
2830+
<simpara>
2831+
Set the port range used for selecting a local port number.
2832+
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
2833+
</simpara>
2834+
</listitem>
2835+
</varlistentry>
2836+
<varlistentry xml:id="constant.ip-portrange-default">
2837+
<term>
2838+
<constant>IP_PORTRANGE_DEFAULT</constant>
2839+
(<type>int</type>)
2840+
</term>
2841+
<listitem>
2842+
<simpara>
2843+
Use the default range of port values.
2844+
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
2845+
</simpara>
2846+
</listitem>
2847+
</varlistentry>
2848+
<varlistentry xml:id="constant.ip-portrange-high">
2849+
<term>
2850+
<constant>IP_PORTRANGE_HIGH</constant>
2851+
(<type>int</type>)
2852+
</term>
2853+
<listitem>
2854+
<simpara>
2855+
Use a high range of port values.
2856+
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
2857+
</simpara>
2858+
</listitem>
2859+
</varlistentry>
2860+
<varlistentry xml:id="constant.ip-portrange-low">
2861+
<term>
2862+
<constant>IP_PORTRANGE_LOW</constant>
2863+
(<type>int</type>)
2864+
</term>
2865+
<listitem>
2866+
<simpara>
2867+
Use a low range of port values.
2868+
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
2869+
</simpara>
2870+
</listitem>
2871+
</varlistentry>
27632872
<varlistentry xml:id="constant.mcast-block-source">
27642873
<term>
27652874
<constant>MCAST_BLOCK_SOURCE</constant>
@@ -3000,6 +3109,67 @@
30003109
</simpara>
30013110
</listitem>
30023111
</varlistentry>
3112+
<varlistentry xml:id="constant.so-exclusiveaddr">
3113+
<term>
3114+
<constant>SO_EXCLUSIVEADDR</constant>
3115+
(<type>int</type>)
3116+
</term>
3117+
<listitem>
3118+
<simpara>
3119+
Prevents other sockets from being forcibly bound to the same address and port.
3120+
Available as of PHP 8.4.0 (Windows only)
3121+
</simpara>
3122+
</listitem>
3123+
</varlistentry>
3124+
<varlistentry xml:id="constant.so-exclbind">
3125+
<term>
3126+
<constant>SO_EXCLBIND</constant>
3127+
(<type>int</type>)
3128+
</term>
3129+
<listitem>
3130+
<simpara>
3131+
Enable/disable exclusive binding of the socket.
3132+
Available as of PHP 8.4.0 (Solaris only)
3133+
</simpara>
3134+
</listitem>
3135+
</varlistentry>
3136+
<varlistentry xml:id="constant.so-nosigpipe">
3137+
<term>
3138+
<constant>SO_NOSIGPIPE</constant>
3139+
(<type>int</type>)
3140+
</term>
3141+
<listitem>
3142+
<simpara>
3143+
Controls generation of SIGPIPE for the socket.
3144+
Available as of PHP 8.4.0 (macOs and FreeBSD only)
3145+
</simpara>
3146+
</listitem>
3147+
</varlistentry>
3148+
<varlistentry xml:id="constant.so-linger-sec">
3149+
<term>
3150+
<constant>SO_LINGER_SEC</constant>
3151+
(<type>int</type>)
3152+
</term>
3153+
<listitem>
3154+
<simpara>
3155+
Similar to <constant>SO_LINGER</constant> but lingering is in seconds
3156+
as opposed to time clicks on macOs.
3157+
Available as of PHP 8.4.0 (macOs only)
3158+
</simpara>
3159+
</listitem>
3160+
</varlistentry>
3161+
<varlistentry xml:id="constant.so-bindtoifindex">
3162+
<term>
3163+
<constant>SO_BINDTOIFINDEX</constant>
3164+
(<type>int</type>)
3165+
</term>
3166+
<listitem>
3167+
<simpara>
3168+
Bind a socket to a specific network interface by its index.
3169+
Available as of PHP 8.4.0
3170+
</simpara>
3171+
</listitem>
3172+
</varlistentry>
30033173
</variablelist>
30043174

30053175
</appendix>

0 commit comments

Comments
 (0)