|
WSAHtonl converts a u_long IPv4 address in host byte order to TCP/IP network byte order.
Syntax
int WSAAPI WSAHtonl( __in SOCKET s, __in u_long hostlong, __out u_long *lpnetlong );
Parameters
s
Ignored. A descriptor identifying a socket.
hostlong
A 32-bit number in host byte order.
lpnetlong
Ignored. A pointer to a 32-bit number to receive the number in network byte order.
Return Values
The value supplied in the hostlong parameter in TCP/IP’s network byte order.
Requirements
Library | Rtxtcpip.lib |