Embedded TCP/IP stack  4.7.0

◆ fnet_htons()

fnet_uint16_t fnet_htons ( fnet_uint16_t  short_var)

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

Parameters
short_varA 16-bit number in host byte order.
Returns
This function returns the network byte-ordered short_var.
See also
FNET_HTONS(), FNET_NTOHS(), FNET_HTONL(), FNET_NTOHL(), fnet_ntohs(), fnet_htonl(), fnet_ntohl()

The function converts the unsigned 16-bit integer from host byte order to network byte order.


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