|
WSANtohs converts a u_short in TCP/IP network byte order to host byte order.
Syntax
int WSAAPI WSANtohs( __in SOCKET s, __in u_short netshort, __out u_short *lphostshort );
Parameters
s
Ignored. A descriptor identifying a socket.
netshort
A 16-bit number in TCP/IP network byte order.
lphostshort
Ignored. A pointer to a 16-bit number to receive the number in host byte order.
Return Values
The value supplied in the netshort parameter with the byte order reversed
Requirements
Library | Rtxtcpip.lib |