summaryrefslogtreecommitdiffstats
path: root/Doc/libsocket.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-12-19 16:43:25 (GMT)
committerGuido van Rossum <guido@python.org>1996-12-19 16:43:25 (GMT)
commit62ac99ebf55d260a947cf74bc0707dddd78a6d06 (patch)
tree50f6fe2153b8cbb98c2d912b5d8a47d64183f6b9 /Doc/libsocket.tex
parent25405c786bd0bd5b4aa8d4370b73e4df30dcbc85 (diff)
downloadcpython-62ac99ebf55d260a947cf74bc0707dddd78a6d06.zip
cpython-62ac99ebf55d260a947cf74bc0707dddd78a6d06.tar.gz
cpython-62ac99ebf55d260a947cf74bc0707dddd78a6d06.tar.bz2
Documented getprotobyname() interface.
Diffstat (limited to 'Doc/libsocket.tex')
-rw-r--r--Doc/libsocket.tex9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/libsocket.tex b/Doc/libsocket.tex
index b105b22..3743100 100644
--- a/Doc/libsocket.tex
+++ b/Doc/libsocket.tex
@@ -107,6 +107,15 @@ a list of IP addresses for the same interface on the same
host (most likely containing only a single address).
\end{funcdesc}
+\begin{funcdesc}{getprotobyname}{protocolname}
+Translate an Internet protocol name (e.g. \code{'icmp'}) to a constant
+suitable for passing as the (optional) third argument to the
+\code{socket()} function. This is usually only needed for sockets
+opened in ``raw'' mode (\code{SOCK_RAW}); for the normal socket modes,
+the correct protocol is chosen automatically if the protocol is
+omitted or zero.
+\end{funcdesc}
+
\begin{funcdesc}{getservbyname}{servicename\, protocolname}
Translate an Internet service name and protocol name to a port number
for that service. The protocol name should be \code{'tcp'} or