From 25405c786bd0bd5b4aa8d4370b73e4df30dcbc85 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 19 Dec 1996 16:42:52 +0000 Subject: [PATCH] Added the new getprotobyname() call to the module overview at the top. --- Modules/socketmodule.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 6d4da23a2b9..98178727263 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