WSAHtonl
WSAHtonl converts a u_long IPv4 address in host byte order to TCP/IP network byte order.
Syntax
Copy
int WSAAPI WSAHtonl(
SOCKET s,
u_long hostlong,
u_long *lpnetlong
);
Parameters
s
Ignored. A descriptor identifying a socket.
hostlong
A 32-bit number in host byte order.
lpnetlong
Ignored.
Return Value
The function returns the value supplied in the hostlong parameter in TCP/IP’s network byte order.
Requirements
Minimum supported version | Header | Library |
---|---|---|
eRTOS 1.0 SDK |
Winsock2.h | RtTcpipApi.lib |