From 62ac99ebf55d260a947cf74bc0707dddd78a6d06 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 19 Dec 1996 16:43:25 +0000 Subject: [PATCH] Documented getprotobyname() interface. --- Doc/lib/libsocket.tex | 9 +++++++++ Doc/libsocket.tex | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex index b105b228d7..3743100c54 100644 --- a/Doc/lib/libsocket.tex +++ b/Doc/lib/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 diff --git a/Doc/libsocket.tex b/Doc/libsocket.tex index b105b228d7..3743100c54 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 -- 2.50.1