WSAHtons

WSAHtons converts a u_short IPv4 address in host byte-ordering to TCP/IP network byte order.

Syntax

int WSAAPI WSAHtons(
    __in SOCKET s,
    __in u_short hostshort,
    __out u_short *lpnetshort
);

Parameters

s

Ignored. A descriptor identifying a socket.

hostshort

A 16 bit number in host byte order.

lpnetshort

Ignored. A pointer to a 16-bit buffer to receive the number in network byte order.

Return Values

The value supplied in the hostshort parameter in TCP/IP network byte order

Requirements

Library Rtxtcpip.lib
IntervalZero.com | Support | Give Feedback