WSANtohs
WSANtohs converts a u_short in TCP/IP network byte order to host byte order.
Syntax
Copy
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 | Header | Library |
|---|---|---|
|
eRTOS 1.0 SDK |
Winsock2.h | RtTcpipApi.lib |