WSAHtonl

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

Syntax

Copy
int WSAAPI WSAHtonl(
    [in]    SOCKET s,
    [in]    u_long hostlong,
    [out]   u_long *lpnetlong
);

Parameters

[in] s

Ignored. A descriptor identifying a socket.

[in] hostlong

A 32-bit number in host byte order.

[out] lpnetlong

Ignored.

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