diff options
author | Guido van Rossum <guido@python.org> | 1996-12-02 17:24:10 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-12-02 17:24:10 (GMT) |
commit | bda7ca77724b75fa196e4367ae7580d510d6ee72 (patch) | |
tree | ba2e4ec13c3b5eb87d80dad09550e48518e56ac1 /Doc/libsocket.tex | |
parent | dde9c2c1d22e86f531057f05b9db7f1d5a3b8cba (diff) | |
download | cpython-bda7ca77724b75fa196e4367ae7580d510d6ee72.zip cpython-bda7ca77724b75fa196e4367ae7580d510d6ee72.tar.gz cpython-bda7ca77724b75fa196e4367ae7580d510d6ee72.tar.bz2 |
Added [nh]to[hn][sl]().
Diffstat (limited to 'Doc/libsocket.tex')
-rw-r--r-- | Doc/libsocket.tex | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/libsocket.tex b/Doc/libsocket.tex index 9b3c228..b105b22 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 |