From: Jarkko Hietaniemi Date: Fri, 30 Nov 2001 22:51:17 +0000 (+0000) Subject: More Socket constants. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7198d2fdac977e5733cbde5f4ff1c2a6188a1799;p=p5sagit%2Fp5-mst-13.2.git More Socket constants. p4raw-id: //depot/perl@13394 --- diff --git a/ext/Socket/Makefile.PL b/ext/Socket/Makefile.PL index 3a7bc57..c01d45a 100644 --- a/ext/Socket/Makefile.PL +++ b/ext/Socket/Makefile.PL @@ -9,24 +9,42 @@ WriteMakefile( XSPROTOARG => '-noprototypes', # XXX remove later? realclean => {FILES=> 'constants.c constants.xs'}, ); -my @names = (qw(AF_802 AF_APPLETALK AF_CCITT AF_CHAOS AF_DATAKIT AF_DECnet - AF_DLI AF_ECMA AF_GOSIP AF_HYLINK AF_IMPLINK AF_INET AF_LAT - AF_MAX AF_NBS AF_NIT AF_NS AF_OSI AF_OSINET AF_PUP AF_SNA - AF_UNIX AF_UNSPEC AF_X25 IOV_MAX IPPROTO_TCP MSG_BCAST - MSG_CTLFLAGS MSG_CTLIGNORE MSG_DONTWAIT MSG_EOF MSG_EOR - MSG_ERRQUEUE MSG_FIN MSG_MAXIOVLEN MSG_MCAST MSG_NOSIGNAL - MSG_RST MSG_SYN MSG_TRUNC MSG_WAITALL PF_802 PF_APPLETALK - PF_CCITT PF_CHAOS PF_DATAKIT PF_DECnet PF_DLI PF_ECMA PF_GOSIP - PF_HYLINK PF_IMPLINK PF_INET PF_LAT PF_MAX PF_NBS PF_NIT PF_NS - PF_OSI PF_OSINET PF_PUP PF_SNA PF_UNIX PF_UNSPEC PF_X25 - SCM_CONNECT SCM_CREDENTIALS SCM_CREDS SCM_TIMESTAMP SOCK_DGRAM - SOCK_RAW SOCK_RDM SOCK_SEQPACKET SOCK_STREAM SOL_SOCKET - SOMAXCONN SO_ACCEPTCONN SO_BROADCAST SO_DEBUG SO_DONTLINGER - SO_DONTROUTE SO_ERROR SO_KEEPALIVE SO_LINGER SO_OOBINLINE - SO_RCVBUF SO_RCVLOWAT SO_RCVTIMEO SO_REUSEADDR SO_REUSEPORT - SO_SNDBUF SO_SNDLOWAT SO_SNDTIMEO SO_TYPE SO_USELOOPBACK - TCP_KEEPALIVE TCP_MAXRT TCP_MAXSEG TCP_NODELAY TCP_STDURG - UIO_MAXIOV MSG_URG), +my @names = (qw(AF_802 AF_AAL AF_APPLETALK AF_CCITT AF_CHAOS AF_CTF + AF_DATAKIT AF_DECnet AF_DLI AF_ECMA AF_GOSIP AF_HYLINK + AF_IMPLINK AF_INET AF_INET6 AF_ISO AF_KEY + AF_LAST AF_LAT AF_LINK AF_MAX AF_NBS AF_NIT AF_NS + AF_OSI AF_OSINET AF_PUP AF_ROUTE AF_SNA + AF_UNIX AF_UNSPEC AF_USER AF_WAN AF_X25 + IOV_MAX IPPROTO_TCP + MSG_BCAST MSG_BTAG MSG_CTLFLAGS MSG_CTLIGNORE MSG_DONTWAIT + MSG_EOF MSG_EOR MSG_ERRQUEUE MSG_ETAG MSG_FIN + MSG_MAXIOVLEN MSG_MCAST MSG_NOSIGNAL MSG_RST MSG_SYN + MSG_TRUNC MSG_URG MSG_WAITALL MSG_WIRE + PF_802 PF_AAL PF_APPLETALK PF_CCITT PF_CHAOS PF_CTF + PF_DATAKIT PF_DECnet PF_DLI PF_ECMA PF_GOSIP PF_HYLINK + PF_IMPLINK PF_INET PF_INET6 PF_ISO PF_KEY + PF_LAST PF_LAT PF_LINK PF_MAX PF_NBS PF_NIT PF_NS + PF_OSI PF_OSINET PF_PUP PF_ROUTE PF_SNA + PF_UNIX PF_UNSPEC PF_USER PF_WAN PF_X25 + SCM_CONNECT SCM_CREDENTIALS SCM_CREDS SCM_TIMESTAMP + SOCK_DGRAM SOCK_RAW SOCK_RDM SOCK_SEQPACKET SOCK_STREAM + SOL_SOCKET SOMAXCONN + SO_ACCEPTCONN SO_ATTACH_FILTER SO_BACKLOG SO_BROADCAST + SO_CHAMELEON SO_DEBUG SO_DETACH_FILTER SO_DGRAM_ERRIND + SO_DONTLINGER SO_DONTROUTE SO_ERROR SO_FAMILY + SO_KEEPALIVE SO_LINGER SO_OOBINLINE + SO_PASSCRED SO_PASSIFNAME SO_PEERCRED + SO_PROTOCOL SO_PROTOTYPE + SO_RCVBUF SO_RCVLOWAT SO_RCVTIMEO + SO_REUSEADDR SO_REUSEPORT + SO_SECURITY_AUTHENTICATION + SO_SECURITY_ENCRYPTION_NETWORK + SO_SECURITY_ENCRYPTION_TRANSPORT + SO_SNDBUF SO_SNDLOWAT SO_SNDTIMEO + SO_STATE SO_TYPE SO_USELOOPBACK SO_XOPEN SO_XSE + TCP_KEEPALIVE TCP_MAXRT TCP_MAXSEG TCP_NODELAY TCP_STDURG + UIO_MAXIOV + ), {name=>"SHUT_RD", type=>"IV", default=>["IV", "0"]}, {name=>"SHUT_WR", type=>"IV", default=>["IV", "1"]}, {name=>"SHUT_RDWR", type=>"IV", default=>["IV", "2"]}, diff --git a/ext/Socket/Socket.pm b/ext/Socket/Socket.pm index 78c41d2..dce0e88 100644 --- a/ext/Socket/Socket.pm +++ b/ext/Socket/Socket.pm @@ -178,9 +178,11 @@ use XSLoader (); sockaddr_in sockaddr_un INADDR_ANY INADDR_BROADCAST INADDR_LOOPBACK INADDR_NONE AF_802 + AF_AAL AF_APPLETALK AF_CCITT AF_CHAOS + AF_CTF AF_DATAKIT AF_DECnet AF_DLI @@ -189,7 +191,12 @@ use XSLoader (); AF_HYLINK AF_IMPLINK AF_INET + AF_INET6 + AF_ISO + AF_KEY + AF_LAST AF_LAT + AF_LINK AF_MAX AF_NBS AF_NIT @@ -197,12 +204,16 @@ use XSLoader (); AF_OSI AF_OSINET AF_PUP + AF_ROUTE AF_SNA AF_UNIX AF_UNSPEC + AF_USER + AF_WAN AF_X25 IOV_MAX MSG_BCAST + MSG_BTAG MSG_CTLFLAGS MSG_CTLIGNORE MSG_CTRUNC @@ -211,6 +222,7 @@ use XSLoader (); MSG_EOF MSG_EOR MSG_ERRQUEUE + MSG_ETAG MSG_FIN MSG_MAXIOVLEN MSG_MCAST @@ -223,10 +235,13 @@ use XSLoader (); MSG_TRUNC MSG_URG MSG_WAITALL + MSG_WIRE PF_802 + PF_AAL PF_APPLETALK PF_CCITT PF_CHAOS + PF_CTF PF_DATAKIT PF_DECnet PF_DLI @@ -235,7 +250,12 @@ use XSLoader (); PF_HYLINK PF_IMPLINK PF_INET + PF_INET6 + PF_ISO + PF_KEY + PF_LAST PF_LAT + PF_LINK PF_MAX PF_NBS PF_NIT @@ -243,9 +263,12 @@ use XSLoader (); PF_OSI PF_OSINET PF_PUP + PF_ROUTE PF_SNA PF_UNIX PF_UNSPEC + PF_USER + PF_WAN PF_X25 SCM_CONNECT SCM_CREDENTIALS @@ -263,24 +286,41 @@ use XSLoader (); SOL_SOCKET SOMAXCONN SO_ACCEPTCONN + SO_ATTACH_FILTER + SO_BACKLOG SO_BROADCAST + SO_CHAMELEON SO_DEBUG + SO_DETACH_FILTER + SO_DGRAM_ERRIND SO_DONTLINGER SO_DONTROUTE SO_ERROR + SO_FAMILY SO_KEEPALIVE SO_LINGER SO_OOBINLINE + SO_PASSCRED + SO_PASSIFNAME + SO_PEERCRED + SO_PROTOCOL + SO_PROTOTYPE SO_RCVBUF SO_RCVLOWAT SO_RCVTIMEO SO_REUSEADDR SO_REUSEPORT + SO_SECURITY_AUTHENTICATION + SO_SECURITY_ENCRYPTION_NETWORK + SO_SECURITY_ENCRYPTION_TRANSPORT SO_SNDBUF SO_SNDLOWAT SO_SNDTIMEO + SO_STATE SO_TYPE SO_USELOOPBACK + SO_XOPEN + SO_XSE UIO_MAXIOV );