blob: decfffcbc9dbf31f1b483f7f85d39729d4918051 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
|
Extension [ <persistent> extension #25 sockets version <no_version> ] {
- Constants [152] {
Constant [ integer AF_UNIX ] { 1 }
Constant [ integer AF_INET ] { 2 }
Constant [ integer AF_INET6 ] { 10 }
Constant [ integer SOCK_STREAM ] { 1 }
Constant [ integer SOCK_DGRAM ] { 2 }
Constant [ integer SOCK_RAW ] { 3 }
Constant [ integer SOCK_SEQPACKET ] { 5 }
Constant [ integer SOCK_RDM ] { 4 }
Constant [ integer MSG_OOB ] { 1 }
Constant [ integer MSG_WAITALL ] { 256 }
Constant [ integer MSG_DONTWAIT ] { 64 }
Constant [ integer MSG_PEEK ] { 2 }
Constant [ integer MSG_DONTROUTE ] { 4 }
Constant [ integer MSG_EOR ] { 128 }
Constant [ integer MSG_EOF ] { 512 }
Constant [ integer SO_DEBUG ] { 1 }
Constant [ integer SO_REUSEADDR ] { 2 }
Constant [ integer SO_KEEPALIVE ] { 9 }
Constant [ integer SO_DONTROUTE ] { 5 }
Constant [ integer SO_LINGER ] { 13 }
Constant [ integer SO_BROADCAST ] { 6 }
Constant [ integer SO_OOBINLINE ] { 10 }
Constant [ integer SO_SNDBUF ] { 7 }
Constant [ integer SO_RCVBUF ] { 8 }
Constant [ integer SO_SNDLOWAT ] { 19 }
Constant [ integer SO_RCVLOWAT ] { 18 }
Constant [ integer SO_SNDTIMEO ] { 21 }
Constant [ integer SO_RCVTIMEO ] { 20 }
Constant [ integer SO_TYPE ] { 3 }
Constant [ integer SO_ERROR ] { 4 }
Constant [ integer SOL_SOCKET ] { 1 }
Constant [ integer SOMAXCONN ] { 128 }
Constant [ integer TCP_NODELAY ] { 1 }
Constant [ integer PHP_NORMAL_READ ] { 1 }
Constant [ integer PHP_BINARY_READ ] { 2 }
Constant [ integer MCAST_JOIN_GROUP ] { 42 }
Constant [ integer MCAST_LEAVE_GROUP ] { 45 }
Constant [ integer MCAST_BLOCK_SOURCE ] { 43 }
Constant [ integer MCAST_UNBLOCK_SOURCE ] { 44 }
Constant [ integer MCAST_JOIN_SOURCE_GROUP ] { 46 }
Constant [ integer MCAST_LEAVE_SOURCE_GROUP ] { 47 }
Constant [ integer IP_MULTICAST_IF ] { 32 }
Constant [ integer IP_MULTICAST_TTL ] { 33 }
Constant [ integer IP_MULTICAST_LOOP ] { 34 }
Constant [ integer IPV6_MULTICAST_IF ] { 17 }
Constant [ integer IPV6_MULTICAST_HOPS ] { 18 }
Constant [ integer IPV6_MULTICAST_LOOP ] { 19 }
Constant [ integer SOCKET_EPERM ] { 1 }
Constant [ integer SOCKET_ENOENT ] { 2 }
Constant [ integer SOCKET_EINTR ] { 4 }
Constant [ integer SOCKET_EIO ] { 5 }
Constant [ integer SOCKET_ENXIO ] { 6 }
Constant [ integer SOCKET_E2BIG ] { 7 }
Constant [ integer SOCKET_EBADF ] { 9 }
Constant [ integer SOCKET_EAGAIN ] { 11 }
Constant [ integer SOCKET_ENOMEM ] { 12 }
Constant [ integer SOCKET_EACCES ] { 13 }
Constant [ integer SOCKET_EFAULT ] { 14 }
Constant [ integer SOCKET_ENOTBLK ] { 15 }
Constant [ integer SOCKET_EBUSY ] { 16 }
Constant [ integer SOCKET_EEXIST ] { 17 }
Constant [ integer SOCKET_EXDEV ] { 18 }
Constant [ integer SOCKET_ENODEV ] { 19 }
Constant [ integer SOCKET_ENOTDIR ] { 20 }
Constant [ integer SOCKET_EISDIR ] { 21 }
Constant [ integer SOCKET_EINVAL ] { 22 }
Constant [ integer SOCKET_ENFILE ] { 23 }
Constant [ integer SOCKET_EMFILE ] { 24 }
Constant [ integer SOCKET_ENOTTY ] { 25 }
Constant [ integer SOCKET_ENOSPC ] { 28 }
Constant [ integer SOCKET_ESPIPE ] { 29 }
Constant [ integer SOCKET_EROFS ] { 30 }
Constant [ integer SOCKET_EMLINK ] { 31 }
Constant [ integer SOCKET_EPIPE ] { 32 }
Constant [ integer SOCKET_ENAMETOOLONG ] { 36 }
Constant [ integer SOCKET_ENOLCK ] { 37 }
Constant [ integer SOCKET_ENOSYS ] { 38 }
Constant [ integer SOCKET_ENOTEMPTY ] { 39 }
Constant [ integer SOCKET_ELOOP ] { 40 }
Constant [ integer SOCKET_EWOULDBLOCK ] { 11 }
Constant [ integer SOCKET_ENOMSG ] { 42 }
Constant [ integer SOCKET_EIDRM ] { 43 }
Constant [ integer SOCKET_ECHRNG ] { 44 }
Constant [ integer SOCKET_EL2NSYNC ] { 45 }
Constant [ integer SOCKET_EL3HLT ] { 46 }
Constant [ integer SOCKET_EL3RST ] { 47 }
Constant [ integer SOCKET_ELNRNG ] { 48 }
Constant [ integer SOCKET_EUNATCH ] { 49 }
Constant [ integer SOCKET_ENOCSI ] { 50 }
Constant [ integer SOCKET_EL2HLT ] { 51 }
Constant [ integer SOCKET_EBADE ] { 52 }
Constant [ integer SOCKET_EBADR ] { 53 }
Constant [ integer SOCKET_EXFULL ] { 54 }
Constant [ integer SOCKET_ENOANO ] { 55 }
Constant [ integer SOCKET_EBADRQC ] { 56 }
Constant [ integer SOCKET_EBADSLT ] { 57 }
Constant [ integer SOCKET_ENOSTR ] { 60 }
Constant [ integer SOCKET_ENODATA ] { 61 }
Constant [ integer SOCKET_ETIME ] { 62 }
Constant [ integer SOCKET_ENOSR ] { 63 }
Constant [ integer SOCKET_ENONET ] { 64 }
Constant [ integer SOCKET_EREMOTE ] { 66 }
Constant [ integer SOCKET_ENOLINK ] { 67 }
Constant [ integer SOCKET_EADV ] { 68 }
Constant [ integer SOCKET_ESRMNT ] { 69 }
Constant [ integer SOCKET_ECOMM ] { 70 }
Constant [ integer SOCKET_EPROTO ] { 71 }
Constant [ integer SOCKET_EMULTIHOP ] { 72 }
Constant [ integer SOCKET_EBADMSG ] { 74 }
Constant [ integer SOCKET_ENOTUNIQ ] { 76 }
Constant [ integer SOCKET_EBADFD ] { 77 }
Constant [ integer SOCKET_EREMCHG ] { 78 }
Constant [ integer SOCKET_ERESTART ] { 85 }
Constant [ integer SOCKET_ESTRPIPE ] { 86 }
Constant [ integer SOCKET_EUSERS ] { 87 }
Constant [ integer SOCKET_ENOTSOCK ] { 88 }
Constant [ integer SOCKET_EDESTADDRREQ ] { 89 }
Constant [ integer SOCKET_EMSGSIZE ] { 90 }
Constant [ integer SOCKET_EPROTOTYPE ] { 91 }
Constant [ integer SOCKET_ENOPROTOOPT ] { 92 }
Constant [ integer SOCKET_EPROTONOSUPPORT ] { 93 }
Constant [ integer SOCKET_ESOCKTNOSUPPORT ] { 94 }
Constant [ integer SOCKET_EOPNOTSUPP ] { 95 }
Constant [ integer SOCKET_EPFNOSUPPORT ] { 96 }
Constant [ integer SOCKET_EAFNOSUPPORT ] { 97 }
Constant [ integer SOCKET_EADDRINUSE ] { 98 }
Constant [ integer SOCKET_EADDRNOTAVAIL ] { 99 }
Constant [ integer SOCKET_ENETDOWN ] { 100 }
Constant [ integer SOCKET_ENETUNREACH ] { 101 }
Constant [ integer SOCKET_ENETRESET ] { 102 }
Constant [ integer SOCKET_ECONNABORTED ] { 103 }
Constant [ integer SOCKET_ECONNRESET ] { 104 }
Constant [ integer SOCKET_ENOBUFS ] { 105 }
Constant [ integer SOCKET_EISCONN ] { 106 }
Constant [ integer SOCKET_ENOTCONN ] { 107 }
Constant [ integer SOCKET_ESHUTDOWN ] { 108 }
Constant [ integer SOCKET_ETOOMANYREFS ] { 109 }
Constant [ integer SOCKET_ETIMEDOUT ] { 110 }
Constant [ integer SOCKET_ECONNREFUSED ] { 111 }
Constant [ integer SOCKET_EHOSTDOWN ] { 112 }
Constant [ integer SOCKET_EHOSTUNREACH ] { 113 }
Constant [ integer SOCKET_EALREADY ] { 114 }
Constant [ integer SOCKET_EINPROGRESS ] { 115 }
Constant [ integer SOCKET_EISNAM ] { 120 }
Constant [ integer SOCKET_EREMOTEIO ] { 121 }
Constant [ integer SOCKET_EDQUOT ] { 122 }
Constant [ integer SOCKET_ENOMEDIUM ] { 123 }
Constant [ integer SOCKET_EMEDIUMTYPE ] { 124 }
Constant [ integer IPPROTO_IP ] { 0 }
Constant [ integer IPPROTO_IPV6 ] { 41 }
Constant [ integer SOL_TCP ] { 6 }
Constant [ integer SOL_UDP ] { 17 }
}
- Functions {
Function [ <internal:sockets> function socket_select ] {
- Parameters [5] {
Parameter #0 [ <required> &$read_fds ]
Parameter #1 [ <required> &$write_fds ]
Parameter #2 [ <required> &$except_fds ]
Parameter #3 [ <required> $tv_sec ]
Parameter #4 [ <optional> $tv_usec ]
}
}
Function [ <internal:sockets> function socket_create ] {
- Parameters [3] {
Parameter #0 [ <required> $domain ]
Parameter #1 [ <required> $type ]
Parameter #2 [ <required> $protocol ]
}
}
Function [ <internal:sockets> function socket_create_listen ] {
- Parameters [2] {
Parameter #0 [ <required> $port ]
Parameter #1 [ <optional> $backlog ]
}
}
Function [ <internal:sockets> function socket_create_pair ] {
- Parameters [4] {
Parameter #0 [ <required> $domain ]
Parameter #1 [ <required> $type ]
Parameter #2 [ <required> $protocol ]
Parameter #3 [ <required> &$fd ]
}
}
Function [ <internal:sockets> function socket_accept ] {
- Parameters [1] {
Parameter #0 [ <required> $socket ]
}
}
Function [ <internal:sockets> function socket_set_nonblock ] {
- Parameters [1] {
Parameter #0 [ <required> $socket ]
}
}
Function [ <internal:sockets> function socket_set_block ] {
- Parameters [1] {
Parameter #0 [ <required> $socket ]
}
}
Function [ <internal:sockets> function socket_listen ] {
- Parameters [2] {
Parameter #0 [ <required> $socket ]
Parameter #1 [ <optional> $backlog ]
}
}
Function [ <internal:sockets> function socket_close ] {
- Parameters [1] {
Parameter #0 [ <required> $socket ]
}
}
Function [ <internal:sockets> function socket_write ] {
- Parameters [3] {
Parameter #0 [ <required> $socket ]
Parameter #1 [ <required> $buf ]
Parameter #2 [ <optional> $length ]
}
}
Function [ <internal:sockets> function socket_read ] {
- Parameters [3] {
Parameter #0 [ <required> $socket ]
Parameter #1 [ <required> $length ]
Parameter #2 [ <optional> $type ]
}
}
Function [ <internal:sockets> function socket_getsockname ] {
- Parameters [3] {
Parameter #0 [ <required> $socket ]
Parameter #1 [ <required> &$addr ]
Parameter #2 [ <optional> &$port ]
}
}
Function [ <internal:sockets> function socket_getpeername ] {
- Parameters [3] {
Parameter #0 [ <required> $socket ]
Parameter #1 [ <required> &$addr ]
Parameter #2 [ <optional> &$port ]
}
}
Function [ <internal:sockets> function socket_connect ] {
- Parameters [3] {
Parameter #0 [ <required> $socket ]
Parameter #1 [ <required> $addr ]
Parameter #2 [ <optional> $port ]
}
}
Function [ <internal:sockets> function socket_strerror ] {
- Parameters [1] {
Parameter #0 [ <required> $errno ]
}
}
Function [ <internal:sockets> function socket_bind ] {
- Parameters [3] {
Parameter #0 [ <required> $socket ]
Parameter #1 [ <required> $addr ]
Parameter #2 [ <optional> $port ]
}
}
Function [ <internal:sockets> function socket_recv ] {
- Parameters [4] {
Parameter #0 [ <required> $socket ]
Parameter #1 [ <required> &$buf ]
Parameter #2 [ <required> $len ]
Parameter #3 [ <required> $flags ]
}
}
Function [ <internal:sockets> function socket_send ] {
- Parameters [4] {
Parameter #0 [ <required> $socket ]
Parameter #1 [ <required> $buf ]
Parameter #2 [ <required> $len ]
Parameter #3 [ <required> $flags ]
}
}
Function [ <internal:sockets> function socket_recvfrom ] {
- Parameters [6] {
Parameter #0 [ <required> $socket ]
Parameter #1 [ <required> &$buf ]
Parameter #2 [ <required> $len ]
Parameter #3 [ <required> $flags ]
Parameter #4 [ <required> &$name ]
Parameter #5 [ <optional> &$port ]
}
}
Function [ <internal:sockets> function socket_sendto ] {
- Parameters [6] {
Parameter #0 [ <required> $socket ]
Parameter #1 [ <required> $buf ]
Parameter #2 [ <required> $len ]
Parameter #3 [ <required> $flags ]
Parameter #4 [ <required> $addr ]
Parameter #5 [ <optional> $port ]
}
}
Function [ <internal:sockets> function socket_get_option ] {
- Parameters [3] {
Parameter #0 [ <required> $socket ]
Parameter #1 [ <required> $level ]
Parameter #2 [ <required> $optname ]
}
}
Function [ <internal:sockets> function socket_set_option ] {
- Parameters [4] {
Parameter #0 [ <required> $socket ]
Parameter #1 [ <required> $level ]
Parameter #2 [ <required> $optname ]
Parameter #3 [ <required> $optval ]
}
}
Function [ <internal:sockets> function socket_shutdown ] {
- Parameters [2] {
Parameter #0 [ <required> $socket ]
Parameter #1 [ <optional> $how ]
}
}
Function [ <internal:sockets> function socket_last_error ] {
- Parameters [1] {
Parameter #0 [ <optional> $socket ]
}
}
Function [ <internal:sockets> function socket_clear_error ] {
- Parameters [1] {
Parameter #0 [ <optional> $socket ]
}
}
Function [ <internal:sockets> function socket_import_stream ] {
- Parameters [1] {
Parameter #0 [ <required> $stream ]
}
}
Function [ <internal:sockets> function socket_getopt ] {
- Parameters [3] {
Parameter #0 [ <required> $socket ]
Parameter #1 [ <required> $level ]
Parameter #2 [ <required> $optname ]
}
}
Function [ <internal:sockets> function socket_setopt ] {
- Parameters [4] {
Parameter #0 [ <required> $socket ]
Parameter #1 [ <required> $level ]
Parameter #2 [ <required> $optname ]
Parameter #3 [ <required> $optval ]
}
}
}
}
|