diff Modules/socketmodule.c @ 25105:39e09f30f7ef legacy-trunk

Update the module doc comment.
author Guido van Rossum <guido@python.org>
date Tue, 03 Sep 2002 19:10:18 +0000
parents 8b470281645e
children 337fcc24985b
line wrap: on
line diff
--- a/Modules/socketmodule.c	Tue Sep 03 18:42:21 2002 +0000
+++ b/Modules/socketmodule.c	Tue Sep 03 19:10:18 2002 +0000
@@ -19,12 +19,14 @@
 	a subclass of socket.error
 - socket.herror: exception raised for gethostby* errors,
 	a subclass of socket.error
+- socket.fromfd(fd, family, type[, proto]) --> new socket object (created
+        from an existing file descriptor)
 - socket.gethostbyname(hostname) --> host IP address (string: 'dd.dd.dd.dd')
 - socket.gethostbyaddr(IP address) --> (hostname, [alias, ...], [IP addr, ...])
 - socket.gethostname() --> host name (string: 'spam' or 'spam.domain.com')
 - socket.getprotobyname(protocolname) --> protocol number
 - socket.getservbyname(servicename, protocolname) --> port number
-- socket.socket(family, type [, proto]) --> new socket object
+- socket.socket([family[, type [, proto]]]) --> new socket object
 - socket.ntohs(16 bit value) --> new int object
 - socket.ntohl(32 bit value) --> new int object
 - socket.htons(16 bit value) --> new int object