This function converts a u_short from network byte order to host byte order.
At a Glance
| Header file: | Winsock.h | 
| Windows CE versions: | 1.0 and later | 
Syntax
u_short ntohs (u_short netshort); 
Parameters
netshort
[in] 16-bit number in TCP/IP network byte order.
Return Values
The ntohs function returns the value in host byte order.
Remarks
The ntohs function takes a 16-bit number in TCP/IP network byte order and returns a 16-bit number in host byte order.
See Also