Embedded TCP/IP stack  4.7.0

◆ fnet_htonl()

fnet_uint32_t fnet_htonl ( fnet_uint32_t  long_var)

Converts 32-bit value from host to network byte order.

Parameters
long_varA 32-bit number in host byte order.
Returns
This function returns the network byte-ordered long_var.
See also
FNET_HTONS(), FNET_NTOHS(), FNET_HTONL(), FNET_NTOHL(), fnet_ntohs(), fnet_htons(), fnet_ntohl()

The function converts the unsigned long integer from host byte order to network byte order.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net