WSANtohs
WSANtohs converts a u_short in TCP/IP network byte order to host byte order.
Syntax
int WSAAPI WSANtohs(
[in] SOCKET s,
[in] u_short netshort,
[out] u_short *lphostshort
);
Parameters
[in] s
Ignored.
[in] netshort
A 16-bit number in TCP/IP network byte order.
[out] lphostshort
Ignored.
Return Value
The value supplied in the netshort parameter with the byte order reversed.
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
winsock2.h |
RttcpipApi.lib |