htonl

htonl converts a u_long IPv4 address in host byte order to TCP/IP network byte order.

Syntax

u_long WSAAPI htonl(
    __in u_long hostlong
);

Parameters

hostlong

A 32-bit number in host byte order.

Return Values

The value supplied in the hostlong parameter in TCP/IP’s network byte order.

IntervalZero.com | Support | Give Feedback