mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Added the new getprotobyname() call to the module overview at the top.
This commit is contained in:
parent
3901d85277
commit
25405c786b
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue