File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,6 +133,17 @@ \section{Built-in Module \sectcode{socket}}
133133daemon).
134134\end {funcdesc }
135135
136+ \begin {funcdesc }{ntohl}{x}
137+ \funcline {ntohs}{x}
138+ \funcline {htonl}{x}
139+ \funcline {htons}{x}
140+ These functions convert 32-bit (`l' suffix) and 16-bit (`s' suffix)
141+ integers between network and host byte order. On machines where the
142+ host byte order is the same as the network byte order, they are no-ops
143+ (assuming the values fit in the indicated size); otherwise, they
144+ perform 2-byte or 4-byte swap operations.
145+ \end {funcdesc }
146+
136147\subsection {Socket Objects }
137148
138149\noindent
Original file line number Diff line number Diff line change @@ -133,6 +133,17 @@ \section{Built-in Module \sectcode{socket}}
133133daemon).
134134\end {funcdesc }
135135
136+ \begin {funcdesc }{ntohl}{x}
137+ \funcline {ntohs}{x}
138+ \funcline {htonl}{x}
139+ \funcline {htons}{x}
140+ These functions convert 32-bit (`l' suffix) and 16-bit (`s' suffix)
141+ integers between network and host byte order. On machines where the
142+ host byte order is the same as the network byte order, they are no-ops
143+ (assuming the values fit in the indicated size); otherwise, they
144+ perform 2-byte or 4-byte swap operations.
145+ \end {funcdesc }
146+
136147\subsection {Socket Objects }
137148
138149\noindent
You can’t perform that action at this time.
0 commit comments