5 #include <sys/socket.h>
19 croak("Socket::%s not implemented on this architecture", s);
31 if (strEQ(name, "AF_802"))
37 if (strEQ(name, "AF_APPLETALK"))
43 if (strEQ(name, "AF_CCITT"))
49 if (strEQ(name, "AF_CHAOS"))
55 if (strEQ(name, "AF_DATAKIT"))
61 if (strEQ(name, "AF_DECnet"))
67 if (strEQ(name, "AF_DLI"))
73 if (strEQ(name, "AF_ECMA"))
79 if (strEQ(name, "AF_GOSIP"))
85 if (strEQ(name, "AF_HYLINK"))
91 if (strEQ(name, "AF_IMPLINK"))
97 if (strEQ(name, "AF_INET"))
103 if (strEQ(name, "AF_LAT"))
109 if (strEQ(name, "AF_MAX"))
115 if (strEQ(name, "AF_NBS"))
121 if (strEQ(name, "AF_NIT"))
127 if (strEQ(name, "AF_NS"))
133 if (strEQ(name, "AF_OSI"))
139 if (strEQ(name, "AF_OSINET"))
145 if (strEQ(name, "AF_PUP"))
151 if (strEQ(name, "AF_SNA"))
157 if (strEQ(name, "AF_UNIX"))
163 if (strEQ(name, "AF_UNSPEC"))
169 if (strEQ(name, "AF_X25"))
199 if (strEQ(name, "MSG_DONTROUTE"))
201 return MSG_DONTROUTE;
205 if (strEQ(name, "MSG_MAXIOVLEN"))
207 return MSG_MAXIOVLEN;
211 if (strEQ(name, "MSG_OOB"))
217 if (strEQ(name, "MSG_PEEK"))
229 if (strEQ(name, "PF_802"))
235 if (strEQ(name, "PF_APPLETALK"))
241 if (strEQ(name, "PF_CCITT"))
247 if (strEQ(name, "PF_CHAOS"))
253 if (strEQ(name, "PF_DATAKIT"))
259 if (strEQ(name, "PF_DECnet"))
265 if (strEQ(name, "PF_DLI"))
271 if (strEQ(name, "PF_ECMA"))
277 if (strEQ(name, "PF_GOSIP"))
283 if (strEQ(name, "PF_HYLINK"))
289 if (strEQ(name, "PF_IMPLINK"))
295 if (strEQ(name, "PF_INET"))
301 if (strEQ(name, "PF_LAT"))
307 if (strEQ(name, "PF_MAX"))
313 if (strEQ(name, "PF_NBS"))
319 if (strEQ(name, "PF_NIT"))
325 if (strEQ(name, "PF_NS"))
331 if (strEQ(name, "PF_OSI"))
337 if (strEQ(name, "PF_OSINET"))
343 if (strEQ(name, "PF_PUP"))
349 if (strEQ(name, "PF_SNA"))
355 if (strEQ(name, "PF_UNIX"))
361 if (strEQ(name, "PF_UNSPEC"))
367 if (strEQ(name, "PF_X25"))
379 if (strEQ(name, "SOCK_DGRAM"))
385 if (strEQ(name, "SOCK_RAW"))
391 if (strEQ(name, "SOCK_RDM"))
397 if (strEQ(name, "SOCK_SEQPACKET"))
398 #ifdef SOCK_SEQPACKET
399 return SOCK_SEQPACKET;
403 if (strEQ(name, "SOCK_STREAM"))
409 if (strEQ(name, "SOL_SOCKET"))
415 if (strEQ(name, "SOMAXCONN"))
421 if (strEQ(name, "SO_ACCEPTCONN"))
423 return SO_ACCEPTCONN;
427 if (strEQ(name, "SO_BROADCAST"))
433 if (strEQ(name, "SO_DEBUG"))
439 if (strEQ(name, "SO_DONTLINGER"))
441 return SO_DONTLINGER;
445 if (strEQ(name, "SO_DONTROUTE"))
451 if (strEQ(name, "SO_ERROR"))
457 if (strEQ(name, "SO_KEEPALIVE"))
463 if (strEQ(name, "SO_LINGER"))
469 if (strEQ(name, "SO_OOBINLINE"))
475 if (strEQ(name, "SO_RCVBUF"))
481 if (strEQ(name, "SO_RCVLOWAT"))
487 if (strEQ(name, "SO_RCVTIMEO"))
493 if (strEQ(name, "SO_REUSEADDR"))
499 if (strEQ(name, "SO_REUSEPORT"))
505 if (strEQ(name, "SO_SNDBUF"))
511 if (strEQ(name, "SO_SNDLOWAT"))
517 if (strEQ(name, "SO_SNDTIMEO"))
523 if (strEQ(name, "SO_TYPE"))
529 if (strEQ(name, "SO_USELOOPBACK"))
530 #ifdef SO_USELOOPBACK
531 return SO_USELOOPBACK;
559 MODULE = Socket PACKAGE = Socket