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