ntohs()
Description
Convert a u_short from network to host byte order.
#include <winsock.h>
u_short PASCAL FAR ntohs ( u_short netshort );
netshort
A 16-bit number in network byte
order.
Remarks
This routine takes a 16-bit number in network byte order and returns a 16-bit
number in host byte order.
Return Value
ntohs() returns the value in host byte order.
See Also
htonl(), htons(),
ntohl()
[Back: ntohl()]
[Next: recv()]