WSAHtonl

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

Syntax

            int WSAAPI WSAHtonl(
  SOCKET s,
    u_long hostlong,
    u_long *lpnetlong
);

Parameters

s

Ignored. A descriptor identifying a socket.

hostlong

A 32-bit number in host byte order.

lpnetlong

Ignored.

Return Value

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

Requirements

Minimum Supported Version RTX64 2013
Header Winsock2.h
Library RtTcpip.lib