WSANtohl

WSANtohl converts a u_long in TCP/IP network byte order to host byte order.

Syntax

int WSAAPI WSANtohl(
    SOCKET s,
    u_long netlong,
    u_long *lphostlong
);

Parameters

s

Ignored. A descriptor identifying a socket.

netlong

A 32-bit number in TCP/IP network byte order

lphostlong

Ignored.

Return Value

The value supplied in the netlong parameter with the byte order reversed.

Requirements

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