File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
7389Translate a host name to IP address format. The IP address is
7490returned as a string, e.g., \code {'100.50.200.5'}. If the host name
Original file line number Diff line number Diff 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}
7389Translate a host name to IP address format. The IP address is
7490returned as a string, e.g., \code {'100.50.200.5'}. If the host name
You can’t perform that action at this time.
0 commit comments