summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-09-03 19:10:18 (GMT)
committerGuido van Rossum <guido@python.org>2002-09-03 19:10:18 (GMT)
commit83a072d953fbc314999a8fb198175ba762c99e2e (patch)
tree22339fb58a6ef087bc3a0c30f7cd1b7b3c3603ca /Modules
parent960bc5490bc39656a53764e3dd38f8ecc70828eb (diff)
downloadcpython-83a072d953fbc314999a8fb198175ba762c99e2e.zip
cpython-83a072d953fbc314999a8fb198175ba762c99e2e.tar.gz
cpython-83a072d953fbc314999a8fb198175ba762c99e2e.tar.bz2
Update the module doc comment.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 7461f60..a790900 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -19,12 +19,14 @@ Module interface:
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