mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Doc patch matching r53434 (htonl etc. now always take/return positive ints).
This commit is contained in:
parent
1ff01fb0af
commit
2799aab86d
1 changed files with 4 additions and 4 deletions
|
@ -331,25 +331,25 @@ Availability: \UNIX.
|
|||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{ntohl}{x}
|
||||
Convert 32-bit integers from network to host byte order. On machines
|
||||
Convert 32-bit positive integers from network to host byte order. On machines
|
||||
where the host byte order is the same as network byte order, this is a
|
||||
no-op; otherwise, it performs a 4-byte swap operation.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{ntohs}{x}
|
||||
Convert 16-bit integers from network to host byte order. On machines
|
||||
Convert 16-bit positive integers from network to host byte order. On machines
|
||||
where the host byte order is the same as network byte order, this is a
|
||||
no-op; otherwise, it performs a 2-byte swap operation.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{htonl}{x}
|
||||
Convert 32-bit integers from host to network byte order. On machines
|
||||
Convert 32-bit positive integers from host to network byte order. On machines
|
||||
where the host byte order is the same as network byte order, this is a
|
||||
no-op; otherwise, it performs a 4-byte swap operation.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{htons}{x}
|
||||
Convert 16-bit integers from host to network byte order. On machines
|
||||
Convert 16-bit positive integers from host to network byte order. On machines
|
||||
where the host byte order is the same as network byte order, this is a
|
||||
no-op; otherwise, it performs a 2-byte swap operation.
|
||||
\end{funcdesc}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue