summaryrefslogtreecommitdiffstats
path: root/Lib/sunos5/SOCKET.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/sunos5/SOCKET.py')
-rwxr-xr-xLib/sunos5/SOCKET.py44
1 files changed, 43 insertions, 1 deletions
diff --git a/Lib/sunos5/SOCKET.py b/Lib/sunos5/SOCKET.py
index 3ac2740..25c10f3 100755
--- a/Lib/sunos5/SOCKET.py
+++ b/Lib/sunos5/SOCKET.py
@@ -1,4 +1,42 @@
# Generated by h2py from /usr/include/sys/socket.h
+
+# Included from sys/netconfig.h
+NETCONFIG = "/etc/netconfig"
+NETPATH = "NETPATH"
+NC_TPI_CLTS = 1
+NC_TPI_COTS = 2
+NC_TPI_COTS_ORD = 3
+NC_TPI_RAW = 4
+NC_NOFLAG = 00
+NC_VISIBLE = 01
+NC_BROADCAST = 02
+NC_NOPROTOFMLY = "-"
+NC_LOOPBACK = "loopback"
+NC_INET = "inet"
+NC_IMPLINK = "implink"
+NC_PUP = "pup"
+NC_CHAOS = "chaos"
+NC_NS = "ns"
+NC_NBS = "nbs"
+NC_ECMA = "ecma"
+NC_DATAKIT = "datakit"
+NC_CCITT = "ccitt"
+NC_SNA = "sna"
+NC_DECNET = "decnet"
+NC_DLI = "dli"
+NC_LAT = "lat"
+NC_HYLINK = "hylink"
+NC_APPLETALK = "appletalk"
+NC_NIT = "nit"
+NC_IEEE802 = "ieee802"
+NC_OSI = "osi"
+NC_X25 = "x25"
+NC_OSINET = "osinet"
+NC_GOSIP = "gosip"
+NC_NOPROTO = "-"
+NC_TCP = "tcp"
+NC_UDP = "udp"
+NC_ICMP = "icmp"
NC_TPI_CLTS = 1
NC_TPI_COTS = 2
NC_TPI_COTS_ORD = 3
@@ -51,7 +89,8 @@ AF_OSI = 19
AF_X25 = 20
AF_OSINET = 21
AF_GOSIP = 22
-AF_MAX = 22
+AF_IPX = 23
+AF_MAX = 23
PF_UNSPEC = AF_UNSPEC
PF_UNIX = AF_UNIX
PF_INET = AF_INET
@@ -75,12 +114,15 @@ PF_OSI = AF_OSI
PF_X25 = AF_X25
PF_OSINET = AF_OSINET
PF_GOSIP = AF_GOSIP
+PF_IPX = AF_IPX
PF_MAX = AF_MAX
SOMAXCONN = 5
MSG_OOB = 0x1
MSG_PEEK = 0x2
MSG_DONTROUTE = 0x4
MSG_MAXIOVLEN = 16
+def OPTLEN(x): return ((((x) + sizeof (long) - 1) / sizeof (long)) * sizeof (long))
+
SOCKETSYS = 88
SOCKETSYS = 83
SO_ACCEPT = 1