Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libsocket.tex @ 4576:c3b0895c90fb legacy-trunk
Added [nh]to[hn][sl]().
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 02 Dec 1996 17:24:10 +0000 |
| parents | f47bc5554418 |
| children | e43362910a5e |
line wrap: on
line diff
--- a/Doc/lib/libsocket.tex Wed Nov 27 19:54:40 1996 +0000 +++ b/Doc/lib/libsocket.tex Mon Dec 02 17:24:10 1996 +0000 @@ -133,6 +133,17 @@ 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
