[Python-checkins] CVS: python/dist/src/Modules socketmodule.c,1.152,1.153

Martin v. L?wis loewis@users.sourceforge.net
Sat, 21 Jul 2001 11:05:33 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv24224

Modified Files:
	socketmodule.c 
Log Message:
Patch #401196: IPv6 extensions to the socket module.
New functions getnameinfo, getaddrinfo. New exceptions socket.gaierror,
socket.herror. Various new constants, in particular AF_INET6 and error
codes and parameters for getaddrinfo.
AF_INET6 support in setipaddr, makesockaddr, getsockaddr, getsockaddrlen,
gethost_common, PySocket_gethostbyaddr.


Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.152
retrieving revision 1.153
diff -C2 -r1.152 -r1.153
*** socketmodule.c	2001/07/21 09:42:15	1.152
--- socketmodule.c	2001/07/21 18:05:31	1.153
***************
*** 8,12 ****
  Limitations:
  
! - only AF_INET and AF_UNIX address families are supported in a
    portable manner, though AF_PACKET is supported under Linux.
  - no read/write operations (use send/recv or makefile instead)
--- 8,12 ----
  Limitations:
  
! - only AF_INET, AF_INET6 and AF_UNIX address families are supported in a
    portable manner, though AF_PACKET is supported under Linux.
[...981 lines suppressed...]
+ #endif
+ #ifdef NI_MAXSERV
+ 	insint(d, "NI_MAXSERV", NI_MAXSERV);
+ #endif
+ #ifdef NI_NOFQDN
+ 	insint(d, "NI_NOFQDN", NI_NOFQDN);
+ #endif
+ #ifdef NI_NUMERICHOST
+ 	insint(d, "NI_NUMERICHOST", NI_NUMERICHOST);
+ #endif
+ #ifdef NI_NAMEREQD
+ 	insint(d, "NI_NAMEREQD", NI_NAMEREQD);
+ #endif
+ #ifdef NI_NUMERICSERV
+ 	insint(d, "NI_NUMERICSERV", NI_NUMERICSERV);
+ #endif
+ #ifdef NI_DGRAM
+ 	insint(d, "NI_DGRAM", NI_DGRAM);
  #endif