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