You are here : python_3socketsockethtonl

socket.htonl() - socket

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.


Syntax

socket.htonl(x)


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference