xref: /PHP-8.3/ext/sockets/sockets.stub.php (revision 7b4b40f0)
1<?php
2
3/** @generate-class-entries */
4
5/**
6 * @var int
7 * @cvalue AF_UNIX
8 */
9const AF_UNIX = UNKNOWN;
10/**
11 * @var int
12 * @cvalue AF_INET
13 */
14const AF_INET = UNKNOWN;
15#if HAVE_IPV6
16/**
17 * @var int
18 * @cvalue AF_INET6
19 */
20const AF_INET6 = UNKNOWN;
21#endif
22#ifdef AF_DIVERT
23/**
24 * @var int
25 * @cvalue AF_DIVERT
26 */
27const AF_DIVERT = UNKNOWN;
28#endif
29/**
30 * @var int
31 * @cvalue SOCK_STREAM
32 */
33const SOCK_STREAM = UNKNOWN;
34/**
35 * @var int
36 * @cvalue SOCK_DGRAM
37 */
38const SOCK_DGRAM = UNKNOWN;
39/**
40 * @var int
41 * @cvalue SOCK_RAW
42 */
43const SOCK_RAW = UNKNOWN;
44/**
45 * @var int
46 * @cvalue SOCK_SEQPACKET
47 */
48const SOCK_SEQPACKET = UNKNOWN;
49#ifdef SOCK_RDM
50/**
51 * @var int
52 * @cvalue SOCK_RDM
53 */
54const SOCK_RDM = UNKNOWN;
55#endif
56
57/**
58 * @var int
59 * @cvalue MSG_OOB
60 */
61const MSG_OOB = UNKNOWN;
62/**
63 * @var int
64 * @cvalue MSG_WAITALL
65 */
66const MSG_WAITALL = UNKNOWN;
67/**
68 * @var int
69 * @cvalue MSG_CTRUNC
70 */
71const MSG_CTRUNC = UNKNOWN;
72/**
73 * @var int
74 * @cvalue MSG_TRUNC
75 */
76const MSG_TRUNC = UNKNOWN;
77/**
78 * @var int
79 * @cvalue MSG_PEEK
80 */
81const MSG_PEEK = UNKNOWN;
82/**
83 * @var int
84 * @cvalue MSG_DONTROUTE
85 */
86const MSG_DONTROUTE = UNKNOWN;
87#ifdef MSG_EOR
88/**
89 * @var int
90 * @cvalue MSG_EOR
91 */
92const MSG_EOR = UNKNOWN;
93#endif
94#ifdef MSG_EOF
95/**
96 * @var int
97 * @cvalue MSG_EOF
98 */
99const MSG_EOF = UNKNOWN;
100#endif
101
102#ifdef MSG_CONFIRM
103/**
104 * @var int
105 * @cvalue MSG_CONFIRM
106 */
107const MSG_CONFIRM = UNKNOWN;
108#endif
109#ifdef MSG_ERRQUEUE
110/**
111 * @var int
112 * @cvalue MSG_ERRQUEUE
113 */
114const MSG_ERRQUEUE = UNKNOWN;
115#endif
116#ifdef MSG_NOSIGNAL
117/**
118 * @var int
119 * @cvalue MSG_NOSIGNAL
120 */
121const MSG_NOSIGNAL = UNKNOWN;
122#endif
123#ifdef MSG_DONTWAIT
124/**
125 * @var int
126 * @cvalue MSG_DONTWAIT
127 */
128const MSG_DONTWAIT = UNKNOWN;
129#endif
130#ifdef MSG_MORE
131/**
132 * @var int
133 * @cvalue MSG_MORE
134 */
135const MSG_MORE = UNKNOWN;
136#endif
137#ifdef MSG_WAITFORONE
138/**
139 * @var int
140 * @cvalue MSG_WAITFORONE
141 */
142const MSG_WAITFORONE = UNKNOWN;
143#endif
144#ifdef MSG_CMSG_CLOEXEC
145/**
146 * @var int
147 * @cvalue MSG_CMSG_CLOEXEC
148 */
149const MSG_CMSG_CLOEXEC = UNKNOWN;
150#endif
151#ifdef MSG_ZEROCOPY
152/**
153 * @var int
154 * @cvalue MSG_ZEROCOPY
155 */
156const MSG_ZEROCOPY = UNKNOWN;
157#endif
158
159/**
160 * @var int
161 * @cvalue SO_DEBUG
162 */
163const SO_DEBUG = UNKNOWN;
164/**
165 * @var int
166 * @cvalue SO_REUSEADDR
167 */
168const SO_REUSEADDR = UNKNOWN;
169#ifdef SO_REUSEPORT
170/**
171 * @var int
172 * @cvalue SO_REUSEPORT
173 */
174const SO_REUSEPORT = UNKNOWN;
175#endif
176#ifdef SO_REUSEPORT_LB
177/**
178 * @var int
179 * @cvalue SO_REUSEPORT_LB
180 */
181const SO_REUSEPORT_LB = UNKNOWN;
182#endif
183/**
184 * @var int
185 * @cvalue SO_KEEPALIVE
186 */
187const SO_KEEPALIVE = UNKNOWN;
188/**
189 * @var int
190 * @cvalue SO_DONTROUTE
191 */
192const SO_DONTROUTE = UNKNOWN;
193/**
194 * @var int
195 * @cvalue SO_LINGER
196 */
197const SO_LINGER = UNKNOWN;
198/**
199 * @var int
200 * @cvalue SO_BROADCAST
201 */
202const SO_BROADCAST = UNKNOWN;
203/**
204 * @var int
205 * @cvalue SO_OOBINLINE
206 */
207const SO_OOBINLINE = UNKNOWN;
208/**
209 * @var int
210 * @cvalue SO_SNDBUF
211 */
212const SO_SNDBUF = UNKNOWN;
213/**
214 * @var int
215 * @cvalue SO_RCVBUF
216 */
217const SO_RCVBUF = UNKNOWN;
218/**
219 * @var int
220 * @cvalue SO_SNDLOWAT
221 */
222const SO_SNDLOWAT = UNKNOWN;
223/**
224 * @var int
225 * @cvalue SO_RCVLOWAT
226 */
227const SO_RCVLOWAT = UNKNOWN;
228/**
229 * @var int
230 * @cvalue SO_SNDTIMEO
231 */
232const SO_SNDTIMEO = UNKNOWN;
233/**
234 * @var int
235 * @cvalue SO_RCVTIMEO
236 */
237const SO_RCVTIMEO = UNKNOWN;
238/**
239 * @var int
240 * @cvalue SO_TYPE
241 */
242const SO_TYPE = UNKNOWN;
243#ifdef SO_FAMILY
244/**
245 * @var int
246 * @cvalue SO_FAMILY
247 */
248const SO_FAMILY = UNKNOWN;
249#endif
250/**
251 * @var int
252 * @cvalue SO_ERROR
253 */
254const SO_ERROR = UNKNOWN;
255#ifdef SO_BINDTODEVICE
256/**
257 * @var int
258 * @cvalue SO_BINDTODEVICE
259 */
260const SO_BINDTODEVICE = UNKNOWN;
261#endif
262#ifdef SO_USER_COOKIE
263/**
264 * @var int
265 * @cvalue SO_LABEL
266 */
267const SO_LABEL = UNKNOWN;
268/**
269 * @var int
270 * @cvalue SO_PEERLABEL
271 */
272const SO_PEERLABEL = UNKNOWN;
273/**
274 * @var int
275 * @cvalue SO_LISTENQLIMIT
276 */
277const SO_LISTENQLIMIT = UNKNOWN;
278/**
279 * @var int
280 * @cvalue SO_LISTENQLEN
281 */
282const SO_LISTENQLEN = UNKNOWN;
283/**
284 * @var int
285 * @cvalue SO_USER_COOKIE
286 */
287const SO_USER_COOKIE = UNKNOWN;
288#endif
289#ifdef SO_SETFIB
290/**
291 * @var int
292 * @cvalue SO_SETFIB
293 */
294const SO_SETFIB = UNKNOWN;
295#endif
296#ifdef SO_ACCEPTFILTER
297/**
298 * @var int
299 * @cvalue SO_ACCEPTFILTER
300 */
301const SO_ACCEPTFILTER = UNKNOWN;
302#endif
303#ifdef SO_RERROR
304/**
305 * @var int
306 * @cvalue SO_RERROR
307 */
308const SO_RERROR = UNKNOWN;
309#endif
310#ifdef SO_SOPLICE
311/**
312 * @var int
313 * @cvalue SO_SPLICE
314 */
315const SO_SPLICE = UNKNOWN;
316#endif
317#ifdef SO_ZEROIZE
318/**
319 * @var int
320 * @cvalue SO_ZEROIZE
321 */
322const SO_ZEROIZE = UNKNOWN;
323#endif
324#ifdef SOL_FILTER
325/**
326 * @var int
327 * @cvalue SOL_FILTER
328 */
329const SOL_FILTER = UNKNOWN;
330/**
331 * @var int
332 * @cvalue FIL_ATTACH
333 */
334const FIL_ATTACH = UNKNOWN;
335/**
336 * @var int
337 * @cvalue FIL_DETACH
338 */
339const FIL_DETACH = UNKNOWN;
340#endif
341#ifdef SO_DONTTRUNC
342/**
343 * @var int
344 * @cvalue SO_DONTTRUNC
345 */
346const SO_DONTTRUNC = UNKNOWN;
347#endif
348#ifdef SO_WANTMORE
349/**
350 * @var int
351 * @cvalue SO_WANTMORE
352 */
353const SO_WANTMORE = UNKNOWN;
354#endif
355/**
356 * @var int
357 * @cvalue SOL_SOCKET
358 */
359const SOL_SOCKET = UNKNOWN;
360/**
361 * @var int
362 * @cvalue SOMAXCONN
363 */
364const SOMAXCONN = UNKNOWN;
365#ifdef SO_MARK
366/**
367 * @var int
368 * @cvalue SO_MARK
369 */
370const SO_MARK = UNKNOWN;
371#endif
372#ifdef SO_RTABLE
373/**
374 * @var int
375 * @cvalue SO_RTABLE
376 */
377const SO_RTABLE = UNKNOWN;
378#endif
379#ifdef SO_INCOMING_CPU
380/**
381 * @var int
382 * @cvalue SO_INCOMING_CPU
383 */
384const SO_INCOMING_CPU = UNKNOWN;
385#endif
386#ifdef SO_MEMINFO
387/**
388 * @var int
389 * @cvalue SO_MEMINFO
390 */
391const SO_MEMINFO = UNKNOWN;
392#endif
393#ifdef SO_BPF_EXTENSIONS
394/**
395 * @var int
396 * @cvalue SO_BPF_EXTENSIONS
397 */
398const SO_BPF_EXTENSIONS = UNKNOWN;
399#endif
400#ifdef SKF_AD_OFF
401/**
402 * @var int
403 * @cvalue SKF_AD_OFF
404 */
405const SKF_AD_OFF = UNKNOWN;
406#endif
407#ifdef SKF_AD_PROTOCOL
408/**
409 * @var int
410 * @cvalue SKF_AD_PROTOCOL
411 */
412const SKF_AD_PROTOCOL = UNKNOWN;
413#endif
414#ifdef SKF_AD_PKTTYPE
415/**
416 * @var int
417 * @cvalue SKF_AD_PKTTYPE
418 */
419const SKF_AD_PKTTYPE = UNKNOWN;
420#endif
421#ifdef SKF_AD_IFINDEX
422/**
423 * @var int
424 * @cvalue SKF_AD_IFINDEX
425 */
426const SKF_AD_IFINDEX = UNKNOWN;
427#endif
428#ifdef SKF_AD_NLATTR
429/**
430 * @var int
431 * @cvalue SKF_AD_NLATTR
432 */
433const SKF_AD_NLATTR = UNKNOWN;
434#endif
435#ifdef SKF_AD_NLATTR_NEST
436/**
437 * @var int
438 * @cvalue SKF_AD_NLATTR_NEST
439 */
440const SKF_AD_NLATTR_NEST = UNKNOWN;
441#endif
442#ifdef SKF_AD_MARK
443/**
444 * @var int
445 * @cvalue SKF_AD_MARK
446 */
447const SKF_AD_MARK = UNKNOWN;
448#endif
449#ifdef SKF_AD_QUEUE
450/**
451 * @var int
452 * @cvalue SKF_AD_QUEUE
453 */
454const SKF_AD_QUEUE = UNKNOWN;
455#endif
456#ifdef SKF_AD_HATYPE
457/**
458 * @var int
459 * @cvalue SKF_AD_HATYPE
460 */
461const SKF_AD_HATYPE = UNKNOWN;
462#endif
463#ifdef SKF_AD_RXHASH
464/**
465 * @var int
466 * @cvalue SKF_AD_RXHASH
467 */
468const SKF_AD_RXHASH = UNKNOWN;
469#endif
470#ifdef SKF_AD_CPU
471/**
472 * @var int
473 * @cvalue SKF_AD_CPU
474 */
475const SKF_AD_CPU = UNKNOWN;
476#endif
477#ifdef SKF_AD_ALU_XOR_X
478/**
479 * @var int
480 * @cvalue SKF_AD_ALU_XOR_X
481 */
482const SKF_AD_ALU_XOR_X = UNKNOWN;
483#endif
484#ifdef SKF_AD_VLAN_TAG
485/**
486 * @var int
487 * @cvalue SKF_AD_VLAN_TAG
488 */
489const SKF_AD_VLAN_TAG = UNKNOWN;
490#endif
491#ifdef SKF_AD_VLAN_TAG_PRESENT
492/**
493 * @var int
494 * @cvalue SKF_AD_VLAN_TAG_PRESENT
495 */
496const SKF_AD_VLAN_TAG_PRESENT = UNKNOWN;
497#endif
498#ifdef SKF_AD_PAY_OFFSET
499/**
500 * @var int
501 * @cvalue SKF_AD_PAY_OFFSET
502 */
503const SKF_AD_PAY_OFFSET = UNKNOWN;
504#endif
505#ifdef SKF_AD_RANDOM
506/**
507 * @var int
508 * @cvalue SKF_AD_RANDOM
509 */
510const SKF_AD_RANDOM = UNKNOWN;
511#endif
512#ifdef SKF_AD_VLAN_TPID
513/**
514 * @var int
515 * @cvalue SKF_AD_VLAN_TPID
516 */
517const SKF_AD_VLAN_TPID = UNKNOWN;
518#endif
519#ifdef SKF_AD_MAX
520/**
521 * @var int
522 * @cvalue SKF_AD_MAX
523 */
524const SKF_AD_MAX = UNKNOWN;
525#endif
526
527#ifdef TCP_CONGESTION
528/**
529 * @var int
530 * @cvalue TCP_CONGESTION
531 */
532const TCP_CONGESTION = UNKNOWN;
533#endif
534#ifdef SO_ZEROCOPY
535/**
536 * @var int
537 * @cvalue SO_ZEROCOPY
538 */
539const SO_ZEROCOPY = UNKNOWN;
540#endif
541#ifdef TCP_NODELAY
542/**
543 * @var int
544 * @cvalue TCP_NODELAY
545 */
546const TCP_NODELAY = UNKNOWN;
547#endif
548#ifdef TCP_NOTSENT_LOWAT
549/**
550 * @var int
551 * @cvalue TCP_NOTSENT_LOWAT
552 */
553const TCP_NOTSENT_LOWAT = UNKNOWN;
554#endif
555#ifdef TCP_DEFER_ACCEPT
556/**
557 * @var int
558 * @cvalue TCP_DEFER_ACCEPT
559 */
560const TCP_DEFER_ACCEPT = UNKNOWN;
561#endif
562#ifdef TCP_KEEPALIVE
563/**
564 * @var int
565 * @cvalue TCP_KEEPALIVE
566 */
567const TCP_KEEPALIVE = UNKNOWN;
568#endif
569#ifdef TCP_KEEPIDLE
570/**
571 * @var int
572 * @cvalue TCP_KEEPIDLE
573 */
574const TCP_KEEPIDLE = UNKNOWN;
575/**
576 * @var int
577 * @cvalue TCP_KEEPINTVL
578 */
579const TCP_KEEPINTVL = UNKNOWN;
580/**
581 * @var int
582 * @cvalue TCP_KEEPCNT
583 */
584const TCP_KEEPCNT = UNKNOWN;
585#endif
586/**
587 * @var int
588 * @cvalue PHP_NORMAL_READ
589 */
590const PHP_NORMAL_READ = UNKNOWN;
591/**
592 * @var int
593 * @cvalue PHP_BINARY_READ
594 */
595const PHP_BINARY_READ = UNKNOWN;
596
597/**
598 * @var int
599 * @cvalue PHP_MCAST_JOIN_GROUP
600 */
601const MCAST_JOIN_GROUP = UNKNOWN;
602/**
603 * @var int
604 * @cvalue PHP_MCAST_LEAVE_GROUP
605 */
606const MCAST_LEAVE_GROUP = UNKNOWN;
607#ifdef HAS_MCAST_EXT
608/**
609 * @var int
610 * @cvalue PHP_MCAST_BLOCK_SOURCE
611 */
612const MCAST_BLOCK_SOURCE = UNKNOWN;
613/**
614 * @var int
615 * @cvalue PHP_MCAST_UNBLOCK_SOURCE
616 */
617const MCAST_UNBLOCK_SOURCE = UNKNOWN;
618/**
619 * @var int
620 * @cvalue PHP_MCAST_JOIN_SOURCE_GROUP
621 */
622const MCAST_JOIN_SOURCE_GROUP = UNKNOWN;
623/**
624 * @var int
625 * @cvalue PHP_MCAST_LEAVE_SOURCE_GROUP
626 */
627const MCAST_LEAVE_SOURCE_GROUP = UNKNOWN;
628#endif
629
630/**
631 * @var int
632 * @cvalue IP_MULTICAST_IF
633 */
634const IP_MULTICAST_IF = UNKNOWN;
635/**
636 * @var int
637 * @cvalue IP_MULTICAST_TTL
638 */
639const IP_MULTICAST_TTL = UNKNOWN;
640/**
641 * @var int
642 * @cvalue IP_MULTICAST_LOOP
643 */
644const IP_MULTICAST_LOOP = UNKNOWN;
645#ifdef IP_BIND_ADDRESS_NO_PORT
646/**
647 * @var int
648 * @cvalue IP_BIND_ADDRESS_NO_PORT
649 */
650const IP_BIND_ADDRESS_NO_PORT = UNKNOWN;
651#endif
652#if HAVE_IPV6
653/**
654 * @var int
655 * @cvalue IPV6_MULTICAST_IF
656 */
657const IPV6_MULTICAST_IF = UNKNOWN;
658/**
659 * @var int
660 * @cvalue IPV6_MULTICAST_HOPS
661 */
662const IPV6_MULTICAST_HOPS = UNKNOWN;
663/**
664 * @var int
665 * @cvalue IPV6_MULTICAST_LOOP
666 */
667const IPV6_MULTICAST_LOOP = UNKNOWN;
668#endif
669
670#ifdef IPV6_V6ONLY
671/**
672 * @var int
673 * @cvalue IPV6_V6ONLY
674 */
675const IPV6_V6ONLY = UNKNOWN;
676#endif
677
678#ifdef EPERM
679/**
680 * Operation not permitted
681 * @var int
682 * @cvalue EPERM
683 */
684const SOCKET_EPERM = UNKNOWN;
685#endif
686#ifdef ENOENT
687/**
688 * No such file or directory
689 * @var int
690 * @cvalue ENOENT
691 */
692const SOCKET_ENOENT = UNKNOWN;
693#endif
694#ifdef PHP_SOCKET_EINTR
695/**
696 * Interrupted system call
697 * @var int
698 * @cvalue PHP_SOCKET_EINTR
699 */
700const SOCKET_EINTR = UNKNOWN;
701#endif
702#ifdef EIO
703/**
704 * I/O error
705 * @var int
706 * @cvalue EIO
707 */
708const SOCKET_EIO = UNKNOWN;
709#endif
710#ifdef ENXIO
711/**
712 * No such device or address
713 * @var int
714 * @cvalue ENXIO
715 */
716const SOCKET_ENXIO = UNKNOWN;
717#endif
718#ifdef E2BIG
719/**
720 * Arg list too long
721 * @var int
722 * @cvalue E2BIG
723 */
724const SOCKET_E2BIG = UNKNOWN;
725#endif
726#ifdef PHP_SOCKET_EBADF
727/**
728 * Bad file number
729 * @var int
730 * @cvalue PHP_SOCKET_EBADF
731 */
732const SOCKET_EBADF = UNKNOWN;
733#endif
734#ifdef EAGAIN
735/**
736 * Try again
737 * @var int
738 * @cvalue EAGAIN
739 */
740const SOCKET_EAGAIN = UNKNOWN;
741#endif
742#ifdef ENOMEM
743/**
744 * Out of memory
745 * @var int
746 * @cvalue ENOMEM
747 */
748const SOCKET_ENOMEM = UNKNOWN;
749#endif
750#ifdef PHP_SOCKET_EACCES
751/**
752 * Permission denied
753 * @var int
754 * @cvalue PHP_SOCKET_EACCES
755 */
756const SOCKET_EACCES = UNKNOWN;
757#endif
758#ifdef PHP_SOCKET_EFAULT
759/**
760 * Bad address
761 * @var int
762 * @cvalue PHP_SOCKET_EFAULT
763 */
764const SOCKET_EFAULT = UNKNOWN;
765#endif
766#ifdef ENOTBLK
767/**
768 * Block device required
769 * @var int
770 * @cvalue ENOTBLK
771 */
772const SOCKET_ENOTBLK = UNKNOWN;
773#endif
774#ifdef EBUSY
775/**
776 * Device or resource busy
777 * @var int
778 * @cvalue EBUSY
779 */
780const SOCKET_EBUSY = UNKNOWN;
781#endif
782#ifdef EEXIST
783/**
784 * File exists
785 * @var int
786 * @cvalue EEXIST
787 */
788const SOCKET_EEXIST = UNKNOWN;
789#endif
790#ifdef EXDEV
791/**
792 * Cross-device link
793 * @var int
794 * @cvalue EXDEV
795 */
796const SOCKET_EXDEV = UNKNOWN;
797#endif
798#ifdef ENODEV
799/**
800 * No such device
801 * @var int
802 * @cvalue ENODEV
803 */
804const SOCKET_ENODEV = UNKNOWN;
805#endif
806#ifdef ENOTDIR
807/**
808 * Not a directory
809 * @var int
810 * @cvalue ENOTDIR
811 */
812const SOCKET_ENOTDIR = UNKNOWN;
813#endif
814#ifdef EISDIR
815/**
816 * Is a directory
817 * @var int
818 * @cvalue EISDIR
819 */
820const SOCKET_EISDIR = UNKNOWN;
821#endif
822#ifdef PHP_SOCKET_EINVAL
823/**
824 * Invalid argument
825 * @var int
826 * @cvalue PHP_SOCKET_EINVAL
827 */
828const SOCKET_EINVAL = UNKNOWN;
829#endif
830#ifdef PHP_SOCKET_ENFILE
831/**
832 * File table overflow
833 * @var int
834 * @cvalue PHP_SOCKET_ENFILE
835 */
836const SOCKET_ENFILE = UNKNOWN;
837#endif
838#ifdef PHP_SOCKET_EMFILE
839/**
840 * Too many open files
841 * @var int
842 * @cvalue PHP_SOCKET_EMFILE
843 */
844const SOCKET_EMFILE = UNKNOWN;
845#endif
846#ifdef ENOTTY
847/**
848 * Not a typewriter
849 * @var int
850 * @cvalue ENOTTY
851 */
852const SOCKET_ENOTTY = UNKNOWN;
853#endif
854#ifdef ENOSPC
855/**
856 * No space left on device
857 * @var int
858 * @cvalue ENOSPC
859 */
860const SOCKET_ENOSPC = UNKNOWN;
861#endif
862#ifdef ESPIPE
863/**
864 * Illegal seek
865 * @var int
866 * @cvalue ESPIPE
867 */
868const SOCKET_ESPIPE = UNKNOWN;
869#endif
870#ifdef EROFS
871/**
872 * Read-only file system
873 * @var int
874 * @cvalue EROFS
875 */
876const SOCKET_EROFS = UNKNOWN;
877#endif
878#ifdef EMLINK
879/**
880 * Too many links
881 * @var int
882 * @cvalue EMLINK
883 */
884const SOCKET_EMLINK = UNKNOWN;
885#endif
886#ifdef EPIPE
887/**
888 * Broken pipe
889 * @var int
890 * @cvalue EPIPE
891 */
892const SOCKET_EPIPE = UNKNOWN;
893#endif
894#ifdef PHP_SOCKET_ENAMETOOLONG
895/**
896 * File name too long
897 * @var int
898 * @cvalue PHP_SOCKET_ENAMETOOLONG
899 */
900const SOCKET_ENAMETOOLONG = UNKNOWN;
901#endif
902#ifdef ENOLCK
903/**
904 * No record locks available
905 * @var int
906 * @cvalue ENOLCK
907 */
908const SOCKET_ENOLCK = UNKNOWN;
909#endif
910#ifdef ENOSYS
911/**
912 * Function not implemented
913 * @var int
914 * @cvalue ENOSYS
915 */
916const SOCKET_ENOSYS = UNKNOWN;
917#endif
918#ifdef PHP_SOCKET_ENOTEMPTY
919/**
920 * Directory not empty
921 * @var int
922 * @cvalue PHP_SOCKET_ENOTEMPTY
923 */
924const SOCKET_ENOTEMPTY = UNKNOWN;
925#endif
926#ifdef PHP_SOCKET_ELOOP
927/**
928 * Too many symbolic links encountered
929 * @var int
930 * @cvalue PHP_SOCKET_ELOOP
931 */
932const SOCKET_ELOOP = UNKNOWN;
933#endif
934#ifdef PHP_SOCKET_EWOULDBLOCK
935/**
936 * Operation would block
937 * @var int
938 * @cvalue PHP_SOCKET_EWOULDBLOCK
939 */
940const SOCKET_EWOULDBLOCK = UNKNOWN;
941#endif
942#ifdef ENOMSG
943/**
944 * No message of desired type
945 * @var int
946 * @cvalue ENOMSG
947 */
948const SOCKET_ENOMSG = UNKNOWN;
949#endif
950#ifdef EIDRM
951/**
952 * Identifier removed
953 * @var int
954 * @cvalue EIDRM
955 */
956const SOCKET_EIDRM = UNKNOWN;
957#endif
958#ifdef ECHRNG
959/**
960 * Channel number out of range
961 * @var int
962 * @cvalue ECHRNG
963 */
964const SOCKET_ECHRNG = UNKNOWN;
965#endif
966#ifdef EL2NSYNC
967/**
968 * Level 2 not synchronized
969 * @var int
970 * @cvalue EL2NSYNC
971 */
972const SOCKET_EL2NSYNC = UNKNOWN;
973#endif
974#ifdef EL3HLT
975/**
976 * Level 3 halted
977 * @var int
978 * @cvalue EL3HLT
979 */
980const SOCKET_EL3HLT = UNKNOWN;
981#endif
982#ifdef EL3RST
983/**
984 * Level 3 reset
985 * @var int
986 * @cvalue EL3RST
987 */
988const SOCKET_EL3RST = UNKNOWN;
989#endif
990#ifdef ELNRNG
991/**
992 * Link number out of range
993 * @var int
994 * @cvalue ELNRNG
995 */
996const SOCKET_ELNRNG = UNKNOWN;
997#endif
998#ifdef EUNATCH
999/**
1000 * Protocol driver not attached
1001 * @var int
1002 * @cvalue EUNATCH
1003 */
1004const SOCKET_EUNATCH = UNKNOWN;
1005#endif
1006#ifdef ENOCSI
1007/**
1008 * No CSI structure available
1009 * @var int
1010 * @cvalue ENOCSI
1011 */
1012const SOCKET_ENOCSI = UNKNOWN;
1013#endif
1014#ifdef EL2HLT
1015/**
1016 * Level 2 halted
1017 * @var int
1018 * @cvalue EL2HLT
1019 */
1020const SOCKET_EL2HLT = UNKNOWN;
1021#endif
1022#ifdef EBADE
1023/**
1024 * Invalid exchange
1025 * @var int
1026 * @cvalue EBADE
1027 */
1028const SOCKET_EBADE = UNKNOWN;
1029#endif
1030#ifdef EBADR
1031/**
1032 * Invalid request descriptor
1033 * @var int
1034 * @cvalue EBADR
1035 */
1036const SOCKET_EBADR = UNKNOWN;
1037#endif
1038#ifdef EXFULL
1039/**
1040 * Exchange full
1041 * @var int
1042 * @cvalue EXFULL
1043 */
1044const SOCKET_EXFULL = UNKNOWN;
1045#endif
1046#ifdef ENOANO
1047/**
1048 * No anode
1049 * @var int
1050 * @cvalue ENOANO
1051 */
1052const SOCKET_ENOANO = UNKNOWN;
1053#endif
1054#ifdef EBADRQC
1055/**
1056 * Invalid request code
1057 * @var int
1058 * @cvalue EBADRQC
1059 */
1060const SOCKET_EBADRQC = UNKNOWN;
1061#endif
1062#ifdef EBADSLT
1063/**
1064 * Invalid slot
1065 * @var int
1066 * @cvalue EBADSLT
1067 */
1068const SOCKET_EBADSLT = UNKNOWN;
1069#endif
1070#ifdef ENOSTR
1071/**
1072 * Device not a stream
1073 * @var int
1074 * @cvalue ENOSTR
1075 */
1076const SOCKET_ENOSTR = UNKNOWN;
1077#endif
1078#ifdef ENODATA
1079/**
1080 * No data available
1081 * @var int
1082 * @cvalue ENODATA
1083 */
1084const SOCKET_ENODATA = UNKNOWN;
1085#endif
1086#ifdef ETIME
1087/**
1088 * Timer expired
1089 * @var int
1090 * @cvalue ETIME
1091 */
1092const SOCKET_ETIME = UNKNOWN;
1093#endif
1094#ifdef ENOSR
1095/**
1096 * Out of streams resources
1097 * @var int
1098 * @cvalue ENOSR
1099 */
1100const SOCKET_ENOSR = UNKNOWN;
1101#endif
1102#ifdef ENONET
1103/**
1104 * Machine is not on the network
1105 * @var int
1106 * @cvalue ENONET
1107 */
1108const SOCKET_ENONET = UNKNOWN;
1109#endif
1110#ifdef PHP_SOCKET_EREMOTE
1111/**
1112 * Object is remote
1113 * @var int
1114 * @cvalue PHP_SOCKET_EREMOTE
1115 */
1116const SOCKET_EREMOTE = UNKNOWN;
1117#endif
1118#ifdef ENOLINK
1119/**
1120 * Link has been severed
1121 * @var int
1122 * @cvalue ENOLINK
1123 */
1124const SOCKET_ENOLINK = UNKNOWN;
1125#endif
1126#ifdef EADV
1127/**
1128 * Advertise error
1129 * @var int
1130 * @cvalue EADV
1131 */
1132const SOCKET_EADV = UNKNOWN;
1133#endif
1134#ifdef ESRMNT
1135/**
1136 * Srmount error
1137 * @var int
1138 * @cvalue ESRMNT
1139 */
1140const SOCKET_ESRMNT = UNKNOWN;
1141#endif
1142#ifdef ECOMM
1143/**
1144 * Communication error on send
1145 * @var int
1146 * @cvalue ECOMM
1147 */
1148const SOCKET_ECOMM = UNKNOWN;
1149#endif
1150#ifdef EPROTO
1151/**
1152 * Protocol error
1153 * @var int
1154 * @cvalue EPROTO
1155 */
1156const SOCKET_EPROTO = UNKNOWN;
1157#endif
1158#ifdef EMULTIHOP
1159/**
1160 * Multihop attempted
1161 * @var int
1162 * @cvalue EMULTIHOP
1163 */
1164const SOCKET_EMULTIHOP = UNKNOWN;
1165#endif
1166#ifdef EBADMSG
1167/**
1168 * Not a data message
1169 * @var int
1170 * @cvalue EBADMSG
1171 */
1172const SOCKET_EBADMSG = UNKNOWN;
1173#endif
1174#ifdef ENOTUNIQ
1175/**
1176 * Name not unique on network
1177 * @var int
1178 * @cvalue ENOTUNIQ
1179 */
1180const SOCKET_ENOTUNIQ = UNKNOWN;
1181#endif
1182#ifdef EBADFD
1183/**
1184 * File descriptor in bad state
1185 * @var int
1186 * @cvalue EBADFD
1187 */
1188const SOCKET_EBADFD = UNKNOWN;
1189#endif
1190#ifdef EREMCHG
1191/**
1192 * Remote address changed
1193 * @var int
1194 * @cvalue EREMCHG
1195 */
1196const SOCKET_EREMCHG = UNKNOWN;
1197#endif
1198#ifdef ERESTART
1199/**
1200 * Interrupted system call should be restarted
1201 * @var int
1202 * @cvalue ERESTART
1203 */
1204const SOCKET_ERESTART = UNKNOWN;
1205#endif
1206#ifdef ESTRPIPE
1207/**
1208 * Streams pipe error
1209 * @var int
1210 * @cvalue ESTRPIPE
1211 */
1212const SOCKET_ESTRPIPE = UNKNOWN;
1213#endif
1214#ifdef PHP_SOCKET_EUSERS
1215/**
1216 * Too many users
1217 * @var int
1218 * @cvalue PHP_SOCKET_EUSERS
1219 */
1220const SOCKET_EUSERS = UNKNOWN;
1221#endif
1222#ifdef PHP_SOCKET_ENOTSOCK
1223/**
1224 * Socket operation on non-socket
1225 * @var int
1226 * @cvalue PHP_SOCKET_ENOTSOCK
1227 */
1228const SOCKET_ENOTSOCK = UNKNOWN;
1229#endif
1230#ifdef PHP_SOCKET_EDESTADDRREQ
1231/**
1232 * Destination address required
1233 * @var int
1234 * @cvalue PHP_SOCKET_EDESTADDRREQ
1235 */
1236const SOCKET_EDESTADDRREQ = UNKNOWN;
1237#endif
1238#ifdef PHP_SOCKET_EMSGSIZE
1239/**
1240 * Message too long
1241 * @var int
1242 * @cvalue PHP_SOCKET_EMSGSIZE
1243 */
1244const SOCKET_EMSGSIZE = UNKNOWN;
1245#endif
1246#ifdef PHP_SOCKET_EPROTOTYPE
1247/**
1248 * Protocol wrong type for socket
1249 * @var int
1250 * @cvalue PHP_SOCKET_EPROTOTYPE
1251 */
1252const SOCKET_EPROTOTYPE = UNKNOWN;
1253#endif
1254#ifdef PHP_SOCKET_ENOPROTOOPT
1255/**
1256 * Protocol not available
1257 * @var int
1258 * @cvalue PHP_SOCKET_ENOPROTOOPT
1259 */
1260const SOCKET_ENOPROTOOPT = UNKNOWN;
1261#endif
1262#ifdef PHP_SOCKET_EPROTONOSUPPORT
1263/**
1264 * Protocol not supported
1265 * @var int
1266 * @cvalue PHP_SOCKET_EPROTONOSUPPORT
1267 */
1268const SOCKET_EPROTONOSUPPORT = UNKNOWN;
1269#endif
1270#ifdef PHP_SOCKET_ESOCKTNOSUPPORT
1271/**
1272 * Socket type not supported
1273 * @var int
1274 * @cvalue PHP_SOCKET_ESOCKTNOSUPPORT
1275 */
1276const SOCKET_ESOCKTNOSUPPORT = UNKNOWN;
1277#endif
1278#ifdef PHP_SOCKET_EOPNOTSUPP
1279/**
1280 * Operation not supported on transport endpoint
1281 * @var int
1282 * @cvalue PHP_SOCKET_EOPNOTSUPP
1283 */
1284const SOCKET_EOPNOTSUPP = UNKNOWN;
1285#endif
1286#ifdef PHP_SOCKET_EPFNOSUPPORT
1287/**
1288 * Protocol family not supported
1289 * @var int
1290 * @cvalue PHP_SOCKET_EPFNOSUPPORT
1291 */
1292const SOCKET_EPFNOSUPPORT = UNKNOWN;
1293#endif
1294#ifdef PHP_SOCKET_EAFNOSUPPORT
1295/**
1296 * Address family not supported by protocol
1297 * @var int
1298 * @cvalue PHP_SOCKET_EAFNOSUPPORT
1299 */
1300const SOCKET_EAFNOSUPPORT = UNKNOWN;
1301#endif
1302#ifdef PHP_SOCKET_EADDRINUSE
1303/**
1304 * Address already in use
1305 * @var int
1306 * @cvalue PHP_SOCKET_EADDRINUSE
1307 */
1308const SOCKET_EADDRINUSE = UNKNOWN;
1309#endif
1310#ifdef PHP_SOCKET_EADDRNOTAVAIL
1311/**
1312 * Cannot assign requested address
1313 * @var int
1314 * @cvalue PHP_SOCKET_EADDRNOTAVAIL
1315 */
1316const SOCKET_EADDRNOTAVAIL = UNKNOWN;
1317#endif
1318#ifdef PHP_SOCKET_ENETDOWN
1319/**
1320 * Network is down
1321 * @var int
1322 * @cvalue PHP_SOCKET_ENETDOWN
1323 */
1324const SOCKET_ENETDOWN = UNKNOWN;
1325#endif
1326#ifdef PHP_SOCKET_ENETUNREACH
1327/**
1328 * Network is unreachable
1329 * @var int
1330 * @cvalue PHP_SOCKET_ENETUNREACH
1331 */
1332const SOCKET_ENETUNREACH = UNKNOWN;
1333#endif
1334#ifdef PHP_SOCKET_ENETRESET
1335/**
1336 * Network dropped connection because of reset
1337 * @var int
1338 * @cvalue PHP_SOCKET_ENETRESET
1339 */
1340const SOCKET_ENETRESET = UNKNOWN;
1341#endif
1342#ifdef PHP_SOCKET_ECONNABORTED
1343/**
1344 * Software caused connection abort
1345 * @var int
1346 * @cvalue PHP_SOCKET_ECONNABORTED
1347 */
1348const SOCKET_ECONNABORTED = UNKNOWN;
1349#endif
1350#ifdef PHP_SOCKET_ECONNRESET
1351/**
1352 * Connection reset by peer
1353 * @var int
1354 * @cvalue PHP_SOCKET_ECONNRESET
1355 */
1356const SOCKET_ECONNRESET = UNKNOWN;
1357#endif
1358#ifdef PHP_SOCKET_ENOBUFS
1359/**
1360 * No buffer space available
1361 * @var int
1362 * @cvalue PHP_SOCKET_ENOBUFS
1363 */
1364const SOCKET_ENOBUFS = UNKNOWN;
1365#endif
1366#ifdef PHP_SOCKET_EISCONN
1367/**
1368 * Transport endpoint is already connected
1369 * @var int
1370 * @cvalue PHP_SOCKET_EISCONN
1371 */
1372const SOCKET_EISCONN = UNKNOWN;
1373#endif
1374#ifdef PHP_SOCKET_ENOTCONN
1375/**
1376 * Transport endpoint is not connected
1377 * @var int
1378 * @cvalue PHP_SOCKET_ENOTCONN
1379 */
1380const SOCKET_ENOTCONN = UNKNOWN;
1381#endif
1382#ifdef PHP_SOCKET_ESHUTDOWN
1383/**
1384 * Cannot send after transport endpoint shutdown
1385 * @var int
1386 * @cvalue PHP_SOCKET_ESHUTDOWN
1387 */
1388const SOCKET_ESHUTDOWN = UNKNOWN;
1389#endif
1390#ifdef PHP_SOCKET_ETOOMANYREFS
1391/**
1392 * Too many references: cannot splice
1393 * @var int
1394 * @cvalue PHP_SOCKET_ETOOMANYREFS
1395 */
1396const SOCKET_ETOOMANYREFS = UNKNOWN;
1397#endif
1398#ifdef PHP_SOCKET_ETIMEDOUT
1399/**
1400 * Connection timed out
1401 * @var int
1402 * @cvalue PHP_SOCKET_ETIMEDOUT
1403 */
1404const SOCKET_ETIMEDOUT = UNKNOWN;
1405#endif
1406#ifdef PHP_SOCKET_ECONNREFUSED
1407/**
1408 * Connection refused
1409 * @var int
1410 * @cvalue PHP_SOCKET_ECONNREFUSED
1411 */
1412const SOCKET_ECONNREFUSED = UNKNOWN;
1413#endif
1414#ifdef PHP_SOCKET_EHOSTDOWN
1415/**
1416 * Host is down
1417 * @var int
1418 * @cvalue PHP_SOCKET_EHOSTDOWN
1419 */
1420const SOCKET_EHOSTDOWN = UNKNOWN;
1421#endif
1422#ifdef PHP_SOCKET_EHOSTUNREACH
1423/**
1424 * No route to host
1425 * @var int
1426 * @cvalue PHP_SOCKET_EHOSTUNREACH
1427 */
1428const SOCKET_EHOSTUNREACH = UNKNOWN;
1429#endif
1430#ifdef PHP_SOCKET_EALREADY
1431/**
1432 * Operation already in progress
1433 * @var int
1434 * @cvalue PHP_SOCKET_EALREADY
1435 */
1436const SOCKET_EALREADY = UNKNOWN;
1437#endif
1438#ifdef PHP_SOCKET_EINPROGRESS
1439/**
1440 * Operation now in progress
1441 * @var int
1442 * @cvalue PHP_SOCKET_EINPROGRESS
1443 */
1444const SOCKET_EINPROGRESS = UNKNOWN;
1445#endif
1446#ifdef EISNAM
1447/**
1448 * Is a named type file
1449 * @var int
1450 * @cvalue EISNAM
1451 */
1452const SOCKET_EISNAM = UNKNOWN;
1453#endif
1454#ifdef EREMOTEIO
1455/**
1456 * Remote I/O error
1457 * @var int
1458 * @cvalue EREMOTEIO
1459 */
1460const SOCKET_EREMOTEIO = UNKNOWN;
1461#endif
1462#ifdef PHP_SOCKET_EDQUOT
1463/**
1464 * Quota exceeded
1465 * @var int
1466 * @cvalue PHP_SOCKET_EDQUOT
1467 */
1468const SOCKET_EDQUOT = UNKNOWN;
1469#endif
1470#ifdef ENOMEDIUM
1471/**
1472 * No medium found
1473 * @var int
1474 * @cvalue ENOMEDIUM
1475 */
1476const SOCKET_ENOMEDIUM = UNKNOWN;
1477#endif
1478#ifdef EMEDIUMTYPE
1479/**
1480 * Wrong medium type
1481 * @var int
1482 * @cvalue EMEDIUMTYPE
1483 */
1484const SOCKET_EMEDIUMTYPE = UNKNOWN;
1485#endif
1486
1487#ifdef WIN32
1488/**
1489 * @var int
1490 * @cvalue WSAESTALE
1491 */
1492const SOCKET_ESTALE = UNKNOWN;
1493/**
1494 * @var int
1495 * @cvalue WSAEDISCON
1496 */
1497const SOCKET_EDISCON = UNKNOWN;
1498/**
1499 * @var int
1500 * @cvalue WSASYSNOTREADY
1501 */
1502const SOCKET_SYSNOTREADY = UNKNOWN;
1503/**
1504 * @var int
1505 * @cvalue WSAVERNOTSUPPORTED
1506 */
1507const SOCKET_VERNOTSUPPORTED = UNKNOWN;
1508/**
1509 * @var int
1510 * @cvalue WSANOTINITIALISED
1511 */
1512const SOCKET_NOTINITIALISED = UNKNOWN;
1513/**
1514 * @var int
1515 * @cvalue WSAHOST_NOT_FOUND
1516 */
1517const SOCKET_HOST_NOT_FOUND = UNKNOWN;
1518/**
1519 * @var int
1520 * @cvalue WSATRY_AGAIN
1521 */
1522const SOCKET_TRY_AGAIN = UNKNOWN;
1523/**
1524 * @var int
1525 * @cvalue WSANO_RECOVERY
1526 */
1527const SOCKET_NO_RECOVERY = UNKNOWN;
1528/**
1529 * @var int
1530 * @cvalue WSANO_DATA
1531 */
1532const SOCKET_NO_DATA = UNKNOWN;
1533/**
1534 * @var int
1535 * @cvalue WSANO_ADDRESS
1536 */
1537const SOCKET_NO_ADDRESS = UNKNOWN;
1538#endif
1539
1540/**
1541 * @var int
1542 * @cvalue IPPROTO_IP
1543 */
1544const IPPROTO_IP = UNKNOWN;
1545#if HAVE_IPV6
1546/**
1547 * @var int
1548 * @cvalue IPPROTO_IPV6
1549 */
1550const IPPROTO_IPV6 = UNKNOWN;
1551#endif
1552
1553/**
1554 * @var int
1555 * @cvalue IPPROTO_TCP
1556 */
1557const SOL_TCP = UNKNOWN;
1558/**
1559 * @var int
1560 * @cvalue IPPROTO_UDP
1561 */
1562const SOL_UDP = UNKNOWN;
1563#ifdef IPPROTO_UDPLITE
1564/**
1565 * @var int
1566 * @cvalue IPPROTO_UDPLITE
1567 */
1568const SOL_UDPLITE = UNKNOWN;
1569#endif
1570
1571#if HAVE_IPV6
1572/**
1573 * @var int
1574 * @cvalue IPV6_UNICAST_HOPS
1575 */
1576const IPV6_UNICAST_HOPS = UNKNOWN;
1577#endif
1578
1579/**
1580 * @var int
1581 * @cvalue AI_PASSIVE
1582 */
1583const AI_PASSIVE = UNKNOWN;
1584/**
1585 * @var int
1586 * @cvalue AI_CANONNAME
1587 */
1588const AI_CANONNAME = UNKNOWN;
1589/**
1590 * @var int
1591 * @cvalue AI_NUMERICHOST
1592 */
1593const AI_NUMERICHOST = UNKNOWN;
1594#if HAVE_AI_V4MAPPED
1595/**
1596 * @var int
1597 * @cvalue AI_V4MAPPED
1598 */
1599const AI_V4MAPPED = UNKNOWN;
1600#endif
1601#if HAVE_AI_ALL
1602/**
1603 * @var int
1604 * @cvalue AI_ALL
1605 */
1606const AI_ALL = UNKNOWN;
1607#endif
1608/**
1609 * @var int
1610 * @cvalue AI_ADDRCONFIG
1611 */
1612const AI_ADDRCONFIG = UNKNOWN;
1613#if HAVE_AI_IDN
1614/**
1615 * @var int
1616 * @cvalue AI_IDN
1617 */
1618const AI_IDN = UNKNOWN;
1619/**
1620 * @var int
1621 * @cvalue AI_CANONIDN
1622 */
1623const AI_CANONIDN = UNKNOWN;
1624#endif
1625#ifdef AI_NUMERICSERV
1626/**
1627 * @var int
1628 * @cvalue AI_NUMERICSERV
1629 */
1630const AI_NUMERICSERV = UNKNOWN;
1631#endif
1632#ifdef SOL_LOCAL
1633/**
1634 * @var int
1635 * @cvalue SOL_LOCAL
1636 */
1637const SOL_LOCAL = UNKNOWN;
1638#endif
1639
1640#if (defined(IPV6_RECVPKTINFO) && HAVE_IPV6)
1641/**
1642 * IPv6 ancillary data
1643 * @var int
1644 * @cvalue IPV6_RECVPKTINFO
1645 */
1646const IPV6_RECVPKTINFO = UNKNOWN;
1647/**
1648 * @var int
1649 * @cvalue IPV6_PKTINFO
1650 */
1651const IPV6_PKTINFO = UNKNOWN;
1652#endif
1653#if (defined(IPV6_RECVHOPLIMIT) && HAVE_IPV6)
1654/**
1655 * @var int
1656 * @cvalue IPV6_RECVHOPLIMIT
1657 */
1658const IPV6_RECVHOPLIMIT = UNKNOWN;
1659/**
1660 * @var int
1661 * @cvalue IPV6_HOPLIMIT
1662 */
1663const IPV6_HOPLIMIT = UNKNOWN;
1664#endif
1665
1666#if (defined(IPV6_RECVTCLASS) && HAVE_IPV6)
1667/**
1668 * @var int
1669 * @cvalue IPV6_RECVTCLASS
1670 */
1671const IPV6_RECVTCLASS = UNKNOWN;
1672/**
1673 * @var int
1674 * @cvalue IPV6_TCLASS
1675 */
1676const IPV6_TCLASS = UNKNOWN;
1677#endif
1678
1679#ifdef SCM_RIGHTS
1680/**
1681 * @var int
1682 * @cvalue SCM_RIGHTS
1683 */
1684const SCM_RIGHTS = UNKNOWN;
1685#endif
1686#ifdef SO_PASSCRED
1687#ifdef SCM_CREDENTIALS
1688/**
1689 * @var int
1690 * @cvalue SCM_CREDENTIALS
1691 */
1692const SCM_CREDENTIALS = UNKNOWN;
1693#else
1694/**
1695 * @var int
1696 * @cvalue SCM_CREDS
1697 */
1698const SCM_CREDS = UNKNOWN;
1699#endif
1700/**
1701 * @var int
1702 * @cvalue SO_PASSCRED
1703 */
1704const SO_PASSCRED = UNKNOWN;
1705#endif
1706#if defined(LOCAL_CREDS_PERSISTENT)
1707/**
1708 * @var int
1709 * @cvalue SCM_CREDS2
1710 */
1711const SCM_CREDS2 = UNKNOWN;
1712/**
1713 * @var int
1714 * @cvalue LOCAL_CREDS_PERSISTENT
1715 */
1716const LOCAL_CREDS_PERSISTENT = UNKNOWN;
1717#endif
1718#if (!defined(LOCAL_CREDS_PERSISTENT) && defined(LOCAL_CREDS))
1719/**
1720 * @var int
1721 * @cvalue SCM_CREDS
1722 */
1723const SCM_CREDS = UNKNOWN;
1724/**
1725 * @var int
1726 * @cvalue LOCAL_CREDS
1727 */
1728const LOCAL_CREDS = UNKNOWN;
1729#endif
1730#if defined(SO_ATTACH_REUSEPORT_CBPF)
1731/**
1732 * @var int
1733 * @cvalue SO_ATTACH_REUSEPORT_CBPF
1734 */
1735const SO_ATTACH_REUSEPORT_CBPF = UNKNOWN;
1736#endif
1737#if defined(SO_DETACH_FILTER)
1738/**
1739 * @var int
1740 * @cvalue SO_DETACH_FILTER
1741 */
1742const SO_DETACH_FILTER = UNKNOWN;
1743#endif
1744#if defined(SO_DETACH_BPF)
1745/**
1746 * @var int
1747 * @cvalue SO_DETACH_BPF
1748 */
1749const SO_DETACH_BPF = UNKNOWN;
1750#endif
1751#if defined(TCP_QUICKACK)
1752/**
1753 * @var int
1754 * @cvalue TCP_QUICKACK
1755 */
1756const TCP_QUICKACK = UNKNOWN;
1757#endif
1758#if defined(TCP_REPAIR)
1759/**
1760 * @var int
1761 * @cvalue TCP_REPAIR
1762 */
1763const TCP_REPAIR = UNKNOWN;
1764#endif
1765#if defined(IP_DONTFRAG)
1766/**
1767 * @var int
1768 * @cvalue IP_DONTFRAG
1769 */
1770const IP_DONTFRAG = UNKNOWN;
1771#endif
1772#if defined(IP_MTU_DISCOVER)
1773/**
1774 * @var int
1775 * @cvalue IP_MTU_DISCOVER
1776 */
1777const IP_MTU_DISCOVER = UNKNOWN;
1778#endif
1779#if defined(IP_PMTUDISC_DO)
1780/**
1781 * @var int
1782 * @cvalue IP_PMTUDISC_DO
1783 */
1784const IP_PMTUDISC_DO = UNKNOWN;
1785#endif
1786#if defined(IP_PMTUDISC_DONT)
1787/**
1788 * @var int
1789 * @cvalue IP_PMTUDISC_DONT
1790 */
1791const IP_PMTUDISC_DONT = UNKNOWN;
1792#endif
1793#if defined(IP_PMTUDISC_WANT)
1794/**
1795 * @var int
1796 * @cvalue IP_PMTUDISC_WANT
1797 */
1798const IP_PMTUDISC_WANT = UNKNOWN;
1799#endif
1800#if defined(IP_PMTUDISC_PROBE)
1801/**
1802 * @var int
1803 * @cvalue IP_PMTUDISC_PROBE
1804 */
1805const IP_PMTUDISC_PROBE = UNKNOWN;
1806#endif
1807#if defined(IP_PMTUDISC_INTERFACE)
1808/**
1809 * @var int
1810 * @cvalue IP_PMTUDISC_INTERFACE
1811 */
1812const IP_PMTUDISC_INTERFACE = UNKNOWN;
1813#endif
1814#if defined(IP_PMTUDISC_OMIT)
1815/**
1816 * @var int
1817 * @cvalue IP_PMTUDISC_OMIT
1818 */
1819const IP_PMTUDISC_OMIT = UNKNOWN;
1820#endif
1821#if defined(UDPLITE_SEND_CSCOV)
1822/**
1823 * @var int
1824 * @cvalue UDPLITE_SEND_CSCOV
1825 */
1826const UDPLITE_SEND_CSCOV = UNKNOWN;
1827#endif
1828#if defined(UDPLITE_RECV_CSCOV)
1829/**
1830 * @var int
1831 * @cvalue UDPLITE_RECV_CSCOV
1832 */
1833const UDPLITE_RECV_CSCOV = UNKNOWN;
1834#endif
1835
1836/**
1837 * @strict-properties
1838 * @not-serializable
1839 */
1840final class Socket
1841{
1842}
1843
1844/**
1845 * @strict-properties
1846 * @not-serializable
1847 */
1848final class AddressInfo
1849{
1850}
1851
1852function socket_select(?array &$read, ?array &$write, ?array &$except, ?int $seconds, int $microseconds = 0): int|false {}
1853
1854function socket_create_listen(int $port, int $backlog = 128): Socket|false {}
1855
1856function socket_accept(Socket $socket): Socket|false {}
1857
1858function socket_set_nonblock(Socket $socket): bool {}
1859
1860function socket_set_block(Socket $socket): bool {}
1861
1862function socket_listen(Socket $socket, int $backlog = 0): bool {}
1863
1864function socket_close(Socket $socket): void {}
1865
1866function socket_write(Socket $socket, string $data, ?int $length = null): int|false {}
1867
1868function socket_read(Socket $socket, int $length, int $mode = PHP_BINARY_READ): string|false {}
1869
1870/**
1871 * @param string $address
1872 * @param int $port
1873 */
1874function socket_getsockname(Socket $socket, &$address, &$port = null): bool {}
1875
1876/**
1877 * @param string $address
1878 * @param int $port
1879 */
1880function socket_getpeername(Socket $socket, &$address, &$port = null): bool {}
1881
1882function socket_create(int $domain, int $type, int $protocol): Socket|false {}
1883
1884function socket_connect(Socket $socket, string $address, ?int $port = null): bool {}
1885
1886function socket_strerror(int $error_code): string {}
1887
1888function socket_bind(Socket $socket, string $address, int $port = 0): bool {}
1889
1890/** @param string|null $data */
1891function socket_recv(Socket $socket, &$data, int $length, int $flags): int|false {}
1892
1893function socket_send(Socket $socket, string $data, int $length, int $flags): int|false {}
1894
1895/**
1896 * @param string $data
1897 * @param string $address
1898 * @param int $port
1899 */
1900function socket_recvfrom(Socket $socket, &$data, int $length, int $flags, &$address, &$port = null): int|false {}
1901
1902function socket_sendto(Socket $socket, string $data, int $length, int $flags, string $address, ?int $port = null): int|false {}
1903
1904/**
1905 * @return array<string, mixed>|int|false
1906 * @refcount 1
1907 */
1908function socket_get_option(Socket $socket, int $level, int $option): array|int|false {}
1909
1910/**
1911 * @return array<string, mixed>|int|false
1912 * @alias socket_get_option
1913 */
1914function socket_getopt(Socket $socket, int $level, int $option): array|int|false {}
1915
1916/** @param array|string|int $value */
1917function socket_set_option(Socket $socket, int $level, int $option, $value): bool {}
1918
1919/**
1920 * @param array|string|int $value
1921 * @alias socket_set_option
1922 */
1923function socket_setopt(Socket $socket, int $level, int $option, $value): bool {}
1924
1925#ifdef HAVE_SOCKETPAIR
1926/** @param array $pair */
1927function socket_create_pair(int $domain, int $type, int $protocol, &$pair): bool {}
1928#endif
1929
1930#ifdef HAVE_SHUTDOWN
1931function socket_shutdown(Socket $socket, int $mode = 2): bool {}
1932#endif
1933
1934#ifdef HAVE_SOCKATMARK
1935function socket_atmark(Socket $socket): bool {}
1936#endif
1937
1938function socket_last_error(?Socket $socket = null): int {}
1939
1940function socket_clear_error(?Socket $socket = null): void {}
1941
1942/** @param resource $stream */
1943function socket_import_stream($stream): Socket|false {}
1944
1945/** @return resource|false */
1946function socket_export_stream(Socket $socket) {}
1947
1948function socket_sendmsg(Socket $socket, array $message, int $flags = 0): int|false {}
1949
1950function socket_recvmsg(Socket $socket, array &$message, int $flags = 0): int|false {}
1951
1952function socket_cmsg_space(int $level, int $type, int $num = 0): ?int {}
1953
1954/**
1955 * @return array<int, AddressInfo>|false
1956 * @refcount 1
1957 */
1958function socket_addrinfo_lookup(string $host, ?string $service = null, array $hints = []): array|false {}
1959
1960function socket_addrinfo_connect(AddressInfo $address): Socket|false {}
1961
1962function socket_addrinfo_bind(AddressInfo $address): Socket|false {}
1963
1964/**
1965 * @return array<string, int|string|array>
1966 * @refcount 1
1967 */
1968function socket_addrinfo_explain(AddressInfo $address): array {}
1969
1970#ifdef PHP_WIN32
1971function socket_wsaprotocol_info_export(Socket $socket, int $process_id): string|false {}
1972
1973function socket_wsaprotocol_info_import(string $info_id): Socket|false {}
1974
1975function socket_wsaprotocol_info_release(string $info_id): bool {}
1976#endif
1977