ntohs
ntohs converts a u_short in TCP/IP network byte order to host byte order.
Syntax
u_short WSAAPI ntohs(
[in] u_short netshort
);
Parameters
[in] netshort
A 32-bit number in TCP/IP network byte order.
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 |