]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added the new getprotobyname() call to the module overview at the top.
authorGuido van Rossum <guido@python.org>
Thu, 19 Dec 1996 16:42:52 +0000 (16:42 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 19 Dec 1996 16:42:52 +0000 (16:42 +0000)
Modules/socketmodule.c

index 6d4da23a2b99d325cfdb5da81800e1ed18efdb63..981787272635c876e62a00dbae99783e87c7ff35 100644 (file)
@@ -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