From: Guido van Rossum Date: Mon, 2 Dec 1996 17:24:10 +0000 (+0000) Subject: Added [nh]to[hn][sl](). X-Git-Tag: v1.5a1~900 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bda7ca77724b75fa196e4367ae7580d510d6ee72;p=python Added [nh]to[hn][sl](). --- diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex index 9b3c2285c2..b105b228d7 100644 --- a/Doc/lib/libsocket.tex +++ b/Doc/lib/libsocket.tex @@ -133,6 +133,17 @@ standard input or output (e.g.\ a server started by the \UNIX{} inet daemon). \end{funcdesc} +\begin{funcdesc}{ntohl}{x} +\funcline{ntohs}{x} +\funcline{htonl}{x} +\funcline{htons}{x} +These functions convert 32-bit (`l' suffix) and 16-bit (`s' suffix) +integers between network and host byte order. On machines where the +host byte order is the same as the network byte order, they are no-ops +(assuming the values fit in the indicated size); otherwise, they +perform 2-byte or 4-byte swap operations. +\end{funcdesc} + \subsection{Socket Objects} \noindent diff --git a/Doc/libsocket.tex b/Doc/libsocket.tex index 9b3c2285c2..b105b228d7 100644 --- a/Doc/libsocket.tex +++ b/Doc/libsocket.tex @@ -133,6 +133,17 @@ standard input or output (e.g.\ a server started by the \UNIX{} inet daemon). \end{funcdesc} +\begin{funcdesc}{ntohl}{x} +\funcline{ntohs}{x} +\funcline{htonl}{x} +\funcline{htons}{x} +These functions convert 32-bit (`l' suffix) and 16-bit (`s' suffix) +integers between network and host byte order. On machines where the +host byte order is the same as the network byte order, they are no-ops +(assuming the values fit in the indicated size); otherwise, they +perform 2-byte or 4-byte swap operations. +\end{funcdesc} + \subsection{Socket Objects} \noindent