summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-02-16 16:29:18 (GMT)
committerGuido van Rossum <guido@python.org>1995-02-16 16:29:18 (GMT)
commited2bad8ef85c7a7a233c9d44238323b9ed81c28d (patch)
tree70ca790c7d12b751e39ba7564622f00b8e1db667
parent5680b95b151f19505d2791f420227dc04a2abfc5 (diff)
downloadcpython-ed2bad8ef85c7a7a233c9d44238323b9ed81c28d.zip
cpython-ed2bad8ef85c7a7a233c9d44238323b9ed81c28d.tar.gz
cpython-ed2bad8ef85c7a7a233c9d44238323b9ed81c28d.tar.bz2
added lots of constants
-rw-r--r--Doc/lib/libsocket.tex16
-rw-r--r--Doc/libsocket.tex16
2 files changed, 32 insertions, 0 deletions
diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex
index 1026ef1..0689f44 100644
--- a/Doc/lib/libsocket.tex
+++ b/Doc/lib/libsocket.tex
@@ -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
diff --git a/Doc/libsocket.tex b/Doc/libsocket.tex
index 1026ef1..0689f44 100644
--- a/Doc/libsocket.tex
+++ b/Doc/libsocket.tex
@@ -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