diff options
author | Guido van Rossum <guido@python.org> | 1996-12-19 16:42:52 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-12-19 16:42:52 (GMT) |
commit | 25405c786bd0bd5b4aa8d4370b73e4df30dcbc85 (patch) | |
tree | a505654f622b06d4f6a3c8d1f7acb1ffbf1b28e8 /Modules/socketmodule.c | |
parent | 3901d85277588bd368eb7a360f6bc3ede2c1227e (diff) | |
download | cpython-25405c786bd0bd5b4aa8d4370b73e4df30dcbc85.zip cpython-25405c786bd0bd5b4aa8d4370b73e4df30dcbc85.tar.gz cpython-25405c786bd0bd5b4aa8d4370b73e4df30dcbc85.tar.bz2 |
Added the new getprotobyname() call to the module overview at the top.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 6d4da23..9817872 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -46,6 +46,7 @@ Module interface: - 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.ntohs(16 bit value) --> new int object |