Kaydet (Commit) 2799aab8 authored tarafından Guido van Rossum's avatar Guido van Rossum

Doc patch matching r53434 (htonl etc. now always take/return positive ints).

üst 1ff01fb0
...@@ -331,25 +331,25 @@ Availability: \UNIX. ...@@ -331,25 +331,25 @@ Availability: \UNIX.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{ntohl}{x} \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 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. no-op; otherwise, it performs a 4-byte swap operation.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{ntohs}{x} \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 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. no-op; otherwise, it performs a 2-byte swap operation.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{htonl}{x} \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 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. no-op; otherwise, it performs a 4-byte swap operation.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{htons}{x} \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 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. no-op; otherwise, it performs a 2-byte swap operation.
\end{funcdesc} \end{funcdesc}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment