You are here : python_3socketsocketntohs

socket.ntohs() - socket

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.


Syntax

socket.ntohs(x)


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference