WSAHtons
WSAHtons converts a u_short IPv4 address in host byte-ordering to TCP/IP network byte order.
Syntax
Copy
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 function returns the value supplied in the hostshort parameter in TCP/IP network byte order
Requirements
Minimum supported version | Header | Library |
---|---|---|
eRTOS 1.0 SDK |
Winsock2.h | RtTcpipApi.lib |