htons

Convert 16-bit integer values from CPU host-order to network-order. See function NET_UTIL_HOST_TO_NET_16 for more information.

Files

net_bsd.h

Prototype

htons(val);

Arguments

val

Data value to convert.

Returned Value

Converted data value.