Group: Windows Sockets 2 (Winsock) - Library: ws2_32
The ntohl function converts a u_long from TCP/IP network order to host byte order (which is little-endian on Intel processors).
Winsock: changing the byte ordering
u_long ntohl(
u_long netlong
);
DECLARE INTEGER ntohl IN ws2_32;
INTEGER netlong
netlong [in] 32-bit number in TCP/IP network byte order.
The ntohl function takes a 32-bit number in TCP/IP network byte order and returns a 32-bit number in host byte order.