ntohs
The Windows
Sockets ntohs function converts a u_short from TCP/IP network
byte order to host byte order.
u_short ntohs (
u_short netshort |
|
); |
|
Parameters
netshort
[in] A 16-bit
number in TCP/IP network byte order.
Remarks
This routine
takes a 16-bit number in TCP/IP network byte order and returns a 16-bit number
in host byte order.
Return Values
ntohs returns the value in host byte order.
See Also