diff Modules/socketmodule.c @ 4783:feba6d58d204 legacy-trunk

Added the new getprotobyname() call to the module overview at the top.
author Guido van Rossum <guido@python.org>
date Thu, 19 Dec 1996 16:42:52 +0000
parents 2426a220664b
children a7159ba0e45d
line wrap: on
line diff
--- a/Modules/socketmodule.c	Thu Dec 19 16:35:04 1996 +0000
+++ b/Modules/socketmodule.c	Thu Dec 19 16:42:52 1996 +0000
@@ -46,6 +46,7 @@
 - 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