WSANtohs

WSANtohs converts a u_short in TCP/IP network byte order to host byte order.

Syntax

int WSAAPI WSANtohs(
    SOCKET s,
    u_short netshort,
    u_short *lphostshort
);

Parameters

s

Ignored.

netshort

A 16-bit number in TCP/IP network byte order.

lphostshort

Ignored.

Return Value

The value supplied in the netshort parameter with the byte order reversed

Requirements

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