The Windows Sockets ntohl function converts a u_long from TCP/IP network order to host byte order (which is big-endian).
u_long ntohl (
  u_long netlong  
);
 The ntohl function takes a 32-bit number in TCP/IP network byte order and returns a 32-bit number in host byte order.
The ntohl function always returns a value in host byte order. If the netlong parameter was already in host byte order, then no operation is performed.
  Windows NT:  Yes
  Windows: Yes
  Windows CE:  Use version 1.0 and later.
  Header: Declared in winsock2.h.
  Import Library: Link with ws2_32.lib.
htonl, htons, ntohs, WSAHtonl, WSAHtons, WSANtohl, WSANtohs