Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ed2bad8

Browse files
committed
added lots of constants
1 parent 5680b95 commit ed2bad8

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

Doc/lib/libsocket.tex

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,22 @@ \section{Built-in Module \sectcode{socket}}
6969
\code{SOCK_DGRAM} appear to be generally useful.)
7070
\end{datadesc}
7171

72+
\begin{datadesc}{SO_*}
73+
\dataline{SOMAXCONN}
74+
\dataline{MSG_*}
75+
\dataline{SOL_*}
76+
\dataline{IPPROTO_*}
77+
\dataline{IPPORT_*}
78+
\dataline{INADDR_*}
79+
\dataline{IP_*}
80+
Many constants of these forms, documented in the Unix documentation on
81+
sockets and/or the IP protocol, are also defined in the socket module.
82+
They are generally used in arguments to the \code{setsockopt} and
83+
\code{getsockopt} methods of socket objects. In most cases, only
84+
those symbols that are defined in the Unix header files are defined;
85+
for a few symbols, default values are provided.
86+
\end{datadesc}
87+
7288
\begin{funcdesc}{gethostbyname}{hostname}
7389
Translate a host name to IP address format. The IP address is
7490
returned as a string, e.g., \code{'100.50.200.5'}. If the host name

Doc/libsocket.tex

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,22 @@ \section{Built-in Module \sectcode{socket}}
6969
\code{SOCK_DGRAM} appear to be generally useful.)
7070
\end{datadesc}
7171

72+
\begin{datadesc}{SO_*}
73+
\dataline{SOMAXCONN}
74+
\dataline{MSG_*}
75+
\dataline{SOL_*}
76+
\dataline{IPPROTO_*}
77+
\dataline{IPPORT_*}
78+
\dataline{INADDR_*}
79+
\dataline{IP_*}
80+
Many constants of these forms, documented in the Unix documentation on
81+
sockets and/or the IP protocol, are also defined in the socket module.
82+
They are generally used in arguments to the \code{setsockopt} and
83+
\code{getsockopt} methods of socket objects. In most cases, only
84+
those symbols that are defined in the Unix header files are defined;
85+
for a few symbols, default values are provided.
86+
\end{datadesc}
87+
7288
\begin{funcdesc}{gethostbyname}{hostname}
7389
Translate a host name to IP address format. The IP address is
7490
returned as a string, e.g., \code{'100.50.200.5'}. If the host name

0 commit comments

Comments
 (0)