Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame^] | 1 | # Generated by h2py from /usr/include/sys/socket.h |
Guido van Rossum | 70f1418 | 1993-12-29 16:35:41 +0000 | [diff] [blame] | 2 | SOCK_STREAM = 1 |
| 3 | SOCK_DGRAM = 2 |
| 4 | SOCK_RAW = 3 |
| 5 | SOCK_RDM = 4 |
| 6 | SOCK_SEQPACKET = 5 |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame^] | 7 | NC_TPI_CLTS = 1 |
| 8 | NC_TPI_COTS = 2 |
| 9 | NC_TPI_COTS_ORD = 3 |
| 10 | NC_TPI_RAW = 4 |
| 11 | SOCK_DGRAM = NC_TPI_CLTS |
| 12 | SOCK_STREAM = NC_TPI_COTS |
| 13 | SOCK_RAW = NC_TPI_RAW |
| 14 | SOCK_RDM = 5 |
| 15 | SOCK_SEQPACKET = 6 |
| 16 | IRIX4_SOCK_STREAM = 1 |
| 17 | IRIX4_SOCK_DGRAM = 2 |
| 18 | IRIX4_SOCK_RAW = 3 |
| 19 | IRIX4_SOCK_RDM = 4 |
| 20 | IRIX4_SOCK_SEQPACKET = 5 |
Guido van Rossum | 70f1418 | 1993-12-29 16:35:41 +0000 | [diff] [blame] | 21 | SO_DEBUG = 0x0001 |
| 22 | SO_ACCEPTCONN = 0x0002 |
| 23 | SO_REUSEADDR = 0x0004 |
| 24 | SO_KEEPALIVE = 0x0008 |
| 25 | SO_DONTROUTE = 0x0010 |
| 26 | SO_BROADCAST = 0x0020 |
| 27 | SO_USELOOPBACK = 0x0040 |
| 28 | SO_LINGER = 0x0080 |
| 29 | SO_OOBINLINE = 0x0100 |
| 30 | SO_REUSEPORT = 0x0200 |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame^] | 31 | SO_ORDREL = 0x0200 |
| 32 | SO_IMASOCKET = 0x0400 |
| 33 | SO_CHAMELEON = 0x1000 |
Guido van Rossum | 70f1418 | 1993-12-29 16:35:41 +0000 | [diff] [blame] | 34 | SO_SNDBUF = 0x1001 |
| 35 | SO_RCVBUF = 0x1002 |
| 36 | SO_SNDLOWAT = 0x1003 |
| 37 | SO_RCVLOWAT = 0x1004 |
| 38 | SO_SNDTIMEO = 0x1005 |
| 39 | SO_RCVTIMEO = 0x1006 |
| 40 | SO_ERROR = 0x1007 |
| 41 | SO_TYPE = 0x1008 |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame^] | 42 | SO_PROTOTYPE = 0x1009 |
Guido van Rossum | 70f1418 | 1993-12-29 16:35:41 +0000 | [diff] [blame] | 43 | SOL_SOCKET = 0xffff |
| 44 | AF_UNSPEC = 0 |
| 45 | AF_UNIX = 1 |
| 46 | AF_INET = 2 |
| 47 | AF_IMPLINK = 3 |
| 48 | AF_PUP = 4 |
| 49 | AF_CHAOS = 5 |
| 50 | AF_NS = 6 |
| 51 | AF_ISO = 7 |
Guido van Rossum | 70f1418 | 1993-12-29 16:35:41 +0000 | [diff] [blame] | 52 | AF_ECMA = 8 |
| 53 | AF_DATAKIT = 9 |
| 54 | AF_CCITT = 10 |
| 55 | AF_SNA = 11 |
| 56 | AF_DECnet = 12 |
| 57 | AF_DLI = 13 |
| 58 | AF_LAT = 14 |
| 59 | AF_HYLINK = 15 |
| 60 | AF_APPLETALK = 16 |
| 61 | AF_ROUTE = 17 |
| 62 | AF_RAW = 18 |
| 63 | AF_LINK = 18 |
| 64 | pseudo_AF_XTP = 19 |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame^] | 65 | AF_NIT = 17 |
| 66 | AF_802 = 18 |
| 67 | AF_OSI = 19 |
| 68 | AF_X25 = 20 |
| 69 | AF_OSINET = 21 |
| 70 | AF_GOSIP = 22 |
| 71 | AF_SDL = 23 |
| 72 | AF_MAX = (AF_SDL+1) |
Guido van Rossum | 70f1418 | 1993-12-29 16:35:41 +0000 | [diff] [blame] | 73 | PF_UNSPEC = AF_UNSPEC |
| 74 | PF_UNIX = AF_UNIX |
| 75 | PF_INET = AF_INET |
| 76 | PF_IMPLINK = AF_IMPLINK |
| 77 | PF_PUP = AF_PUP |
| 78 | PF_CHAOS = AF_CHAOS |
| 79 | PF_NS = AF_NS |
| 80 | PF_ISO = AF_ISO |
Guido van Rossum | 70f1418 | 1993-12-29 16:35:41 +0000 | [diff] [blame] | 81 | PF_ECMA = AF_ECMA |
| 82 | PF_DATAKIT = AF_DATAKIT |
| 83 | PF_CCITT = AF_CCITT |
| 84 | PF_SNA = AF_SNA |
| 85 | PF_DECnet = AF_DECnet |
| 86 | PF_DLI = AF_DLI |
| 87 | PF_LAT = AF_LAT |
| 88 | PF_HYLINK = AF_HYLINK |
| 89 | PF_APPLETALK = AF_APPLETALK |
| 90 | PF_ROUTE = AF_ROUTE |
| 91 | PF_LINK = AF_LINK |
| 92 | PF_XTP = pseudo_AF_XTP |
| 93 | PF_RAW = AF_RAW |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame^] | 94 | PF_NIT = AF_NIT |
| 95 | PF_802 = AF_802 |
| 96 | PF_OSI = AF_OSI |
| 97 | PF_X25 = AF_X25 |
| 98 | PF_OSINET = AF_OSINET |
| 99 | PF_GOSIP = AF_GOSIP |
Guido van Rossum | 70f1418 | 1993-12-29 16:35:41 +0000 | [diff] [blame] | 100 | PF_MAX = AF_MAX |
| 101 | SOMAXCONN = 5 |
| 102 | MSG_OOB = 0x1 |
| 103 | MSG_PEEK = 0x2 |
| 104 | MSG_DONTROUTE = 0x4 |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame^] | 105 | MSG_EOR = 0x8 |
Guido van Rossum | 70f1418 | 1993-12-29 16:35:41 +0000 | [diff] [blame] | 106 | MSG_BTAG = 0x40 |
| 107 | MSG_ETAG = 0x80 |
| 108 | MSG_MAXIOVLEN = 16 |