Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHP 8.4] socket update #4210

Merged
merged 2 commits into from
Dec 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
157 changes: 157 additions & 0 deletions reference/sockets/constants.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,54 @@
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.sock-conn-dgram">
<term>
<constant>SOCK_CONN_DGRAM</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Set the socket to a connection-oriented datagram.
Available as of PHP 8.4.0 (NetBSD only)
Girgias marked this conversation as resolved.
Show resolved Hide resolved
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.sock-dccp">
<term>
<constant>SOCK_DCCP</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Set the socket to a datagram congestion control protocol.
Available as of PHP 8.4.0 (NetBSD only)
Girgias marked this conversation as resolved.
Show resolved Hide resolved
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.sock-non-block">
<term>
<constant>SOCK_NON_BLOCK</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Set the non-blocking socket status flag.
Available as of PHP 8.4.0
Girgias marked this conversation as resolved.
Show resolved Hide resolved
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.sock-cloexec">
<term>
<constant>SOCK_CLOEXEC</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Set the close-on-exec socket status flag.
Available as of PHP 8.4.0
Girgias marked this conversation as resolved.
Show resolved Hide resolved
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.msg-oob">
<term>
<constant>MSG_OOB</constant>
Expand Down Expand Up @@ -2760,6 +2808,54 @@
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.ip-portrange">
<term>
<constant>IP_PORTRANGE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Set the port range used for selecting a local port number.
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
Girgias marked this conversation as resolved.
Show resolved Hide resolved
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.ip-portrange-default">
<term>
<constant>IP_PORTRANGE_DEFAULT</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Use the default range of port values.
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
Girgias marked this conversation as resolved.
Show resolved Hide resolved
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.ip-portrange-high">
<term>
<constant>IP_PORTRANGE_HIGH</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Use a high range of port values.
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
Girgias marked this conversation as resolved.
Show resolved Hide resolved
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.ip-portrange-low">
<term>
<constant>IP_PORTRANGE_LOW</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Use a low range of port values.
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
Girgias marked this conversation as resolved.
Show resolved Hide resolved
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.mcast-block-source">
<term>
<constant>MCAST_BLOCK_SOURCE</constant>
Expand Down Expand Up @@ -3000,6 +3096,67 @@
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.so-exclusiveaddr">
<term>
<constant>SO_EXCLUSIVEADDR</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Prevents other sockets from being forcibly bound to the same address and port.
Available as of PHP 8.4.0 (Windows only)
Girgias marked this conversation as resolved.
Show resolved Hide resolved
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.so-exclbind">
<term>
<constant>SO_EXCLBIND</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Enable/disable exclusive binding of the socket.
Available as of PHP 8.4.0 (Solaris only)
Girgias marked this conversation as resolved.
Show resolved Hide resolved
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.so-nosigpipe">
<term>
<constant>SO_NOSIGPIPE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Controls generation of SIGPIPE for the socket.
Available as of PHP 8.4.0 (macOs and FreeBSD only)
Girgias marked this conversation as resolved.
Show resolved Hide resolved
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.so-linger-sec">
<term>
<constant>SO_LINGER_SEC</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Similar to <constant>SO_LINGER</constant> but lingering is in seconds
as opposed to time clicks on macOs.
Available as of PHP 8.4.0 (macOs only)
Girgias marked this conversation as resolved.
Show resolved Hide resolved
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.so-bindtoifindex">
<term>
<constant>SO_BINDTOIFINDEX</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Bind a socket to a specific network interface by its index.
Available as of PHP 8.4.0
Girgias marked this conversation as resolved.
Show resolved Hide resolved
</simpara>
</listitem>
</varlistentry>
</variablelist>

</appendix>
Expand Down