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