Skip to content

Commit cf26a1c

Browse files
committed
socket extension update related to last entries.
1 parent 529b4f9 commit cf26a1c

File tree

2 files changed

+133
-0
lines changed

2 files changed

+133
-0
lines changed

reference/sockets/constants.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,17 @@
158158
</simpara>
159159
</listitem>
160160
</varlistentry>
161+
<varlistentry xml:id="constant.msg-zerocopy">
162+
<term>
163+
<constant>MSG_ZEROCOPY</constant>
164+
(<type>int</type>)
165+
</term>
166+
<listitem>
167+
<simpara>
168+
Available as of PHP 8.2.0
169+
</simpara>
170+
</listitem>
171+
</varlistentry>
161172
<varlistentry xml:id="constant.so-debug">
162173
<term>
163174
<constant>SO_DEBUG</constant>
@@ -336,6 +347,17 @@
336347
</simpara>
337348
</listitem>
338349
</varlistentry>
350+
<varlistentry xml:id="constant.so-zerocopy">
351+
<term>
352+
<constant>SO_ZEROCOPY</constant>
353+
(<type>int</type>)
354+
</term>
355+
<listitem>
356+
<simpara>
357+
Available as of PHP 8.2.0
358+
</simpara>
359+
</listitem>
360+
</varlistentry>
339361
<varlistentry xml:id="constant.tcp-nodelay">
340362
<term>
341363
<constant>TCP_NODELAY</constant>
@@ -413,6 +435,17 @@
413435
</simpara>
414436
</listitem>
415437
</varlistentry>
438+
<varlistentry xml:id="constant.tcp-congestion">
439+
<term>
440+
<constant>TCP_CONGESTION</constant>
441+
(<type>string</type>)
442+
</term>
443+
<listitem>
444+
<simpara>
445+
Available as of PHP 8.2.0
446+
</simpara>
447+
</listitem>
448+
</varlistentry>
416449
<varlistentry xml:id="constant.sol-socket">
417450
<term>
418451
<constant>SOL_SOCKET</constant>

reference/sockets/functions/socket-get-option.xml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,16 @@
433433
<type>int</type>
434434
</entry>
435435
</row>
436+
<row>
437+
<entry><constant>SO_RTABLE</constant></entry>
438+
<entry>
439+
Sets an identifier on the socket for packet filtering
440+
purpose on OpenBSD.
441+
</entry>
442+
<entry>
443+
<type>int</type>
444+
</entry>
445+
</row>
436446
<row>
437447
<entry><constant>SO_DONTTRUNC</constant></entry>
438448
<entry>
@@ -460,6 +470,96 @@
460470
<type>int</type>
461471
</entry>
462472
</row>
473+
<row>
474+
<entry><constant>SO_INCOMING_CPU</constant></entry>
475+
<entry>
476+
Gets/Sets the cpu affinity of a socket.
477+
</entry>
478+
<entry>
479+
<type>int</type>
480+
</entry>
481+
</row>
482+
<row>
483+
<entry><constant>SO_MEMINFO</constant></entry>
484+
<entry>
485+
Gets all the meminfo of a socket.
486+
</entry>
487+
<entry>
488+
<type>int</type>
489+
</entry>
490+
</row>
491+
<row>
492+
<entry><constant>SO_BPF_EXTENSIONS</constant></entry>
493+
<entry>
494+
Gets the supported BPF extensions by the kernel to attach to a socket.
495+
</entry>
496+
<entry>
497+
<type>int</type>
498+
</entry>
499+
</row>
500+
<row>
501+
<entry><constant>SO_SETFIB</constant></entry>
502+
<entry>
503+
Sets the route table (FIB) of a socket. (FreeBSD only)
504+
</entry>
505+
<entry>
506+
<type>int</type>
507+
</entry>
508+
</row>
509+
<row>
510+
<entry><constant>SOL_FILTER</constant></entry>
511+
<entry>
512+
Filters attributed to a socket. (Solaris/Illumos only)
513+
</entry>
514+
<entry>
515+
<type>int</type>
516+
</entry>
517+
</row>
518+
<row>
519+
<entry><constant>TCP_KEEPCNT</constant></entry>
520+
<entry>
521+
Sets the maximum number of keepalive probes TCP should send before dropping the connection.
522+
</entry>
523+
<entry>
524+
<type>int</type>
525+
</entry>
526+
</row>
527+
<row>
528+
<entry><constant>TCP_KEEPIDLE</constant></entry>
529+
<entry>
530+
Sets the time the connection needs to remain idle.
531+
</entry>
532+
<entry>
533+
<type>int</type>
534+
</entry>
535+
</row>
536+
<row>
537+
<entry><constant>TCP_KEEPINTVL</constant></entry>
538+
<entry>
539+
Sets the time between individual keepalive probes.
540+
</entry>
541+
<entry>
542+
<type>int</type>
543+
</entry>
544+
</row>
545+
<row>
546+
<entry><constant>TCP_KEEPALIVE</constant></entry>
547+
<entry>
548+
Sets the time the connection needs to remain idle. (macOS only)
549+
</entry>
550+
<entry>
551+
<type>int</type>
552+
</entry>
553+
</row>
554+
<row>
555+
<entry><constant>TCP_NOTSENT_LOWAT</constant></entry>
556+
<entry>
557+
Sets how much unsent data by the socket stream. (Linux only)
558+
</entry>
559+
<entry>
560+
<type>int</type>
561+
</entry>
562+
</row>
463563
</tbody>
464564
</tgroup>
465565
</table>

0 commit comments

Comments
 (0)