htonl

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

Syntax

Copy
u_long WSAAPI htonl(
    [in]    u_long hostlong
);

Parameters

[in] hostlong

A 64-bit number in host byte order.

Return Value

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

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

winsock2.h

RttcpipApi.lib