socket.ntohl()

socket.ntohl(integer) → integer

Convert a 32-bit integer from network to host byte order.