]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
added lots of constants
authorGuido van Rossum <guido@python.org>
Thu, 16 Feb 1995 16:29:18 +0000 (16:29 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 16 Feb 1995 16:29:18 +0000 (16:29 +0000)
Doc/lib/libsocket.tex
Doc/libsocket.tex

index 1026ef1858634bbf985d2482f6bdfc0be6d033c1..0689f44d2d22db750457e30cd950ca06b9730c67 100644 (file)
@@ -69,6 +69,22 @@ used for the second argument to \code{socket()}.
 \code{SOCK_DGRAM} appear to be generally useful.)
 \end{datadesc}
 
+\begin{datadesc}{SO_*}
+\dataline{SOMAXCONN}
+\dataline{MSG_*}
+\dataline{SOL_*}
+\dataline{IPPROTO_*}
+\dataline{IPPORT_*}
+\dataline{INADDR_*}
+\dataline{IP_*}
+Many constants of these forms, documented in the Unix documentation on
+sockets and/or the IP protocol, are also defined in the socket module.
+They are generally used in arguments to the \code{setsockopt} and
+\code{getsockopt} methods of socket objects.  In most cases, only
+those symbols that are defined in the Unix header files are defined;
+for a few symbols, default values are provided.
+\end{datadesc}
+
 \begin{funcdesc}{gethostbyname}{hostname}
 Translate a host name to IP address format.  The IP address is
 returned as a string, e.g.,  \code{'100.50.200.5'}.  If the host name
index 1026ef1858634bbf985d2482f6bdfc0be6d033c1..0689f44d2d22db750457e30cd950ca06b9730c67 100644 (file)
@@ -69,6 +69,22 @@ used for the second argument to \code{socket()}.
 \code{SOCK_DGRAM} appear to be generally useful.)
 \end{datadesc}
 
+\begin{datadesc}{SO_*}
+\dataline{SOMAXCONN}
+\dataline{MSG_*}
+\dataline{SOL_*}
+\dataline{IPPROTO_*}
+\dataline{IPPORT_*}
+\dataline{INADDR_*}
+\dataline{IP_*}
+Many constants of these forms, documented in the Unix documentation on
+sockets and/or the IP protocol, are also defined in the socket module.
+They are generally used in arguments to the \code{setsockopt} and
+\code{getsockopt} methods of socket objects.  In most cases, only
+those symbols that are defined in the Unix header files are defined;
+for a few symbols, default values are provided.
+\end{datadesc}
+
 \begin{funcdesc}{gethostbyname}{hostname}
 Translate a host name to IP address format.  The IP address is
 returned as a string, e.g.,  \code{'100.50.200.5'}.  If the host name