WSAHtons
WSAHtons converts a u_short IPv4 address in host byte-ordering to TCP/IP network byte order.
Syntax
int WSAAPI WSAHtons( SOCKET s, u_short hostshort, 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 Value
The value supplied in the hostshort parameter in TCP/IP network byte order
Requirements
Minimum Supported Version | RTX64 2013 |
Header | Winsock2.h |
Library | RtTcpip.lib |