SOC_HtoNl
SOC_HtoNs
SOC_NtoHl
SOC_NtoHs

C Specification

#include <nitroWiFi/soc.h>
u32 SOC_HtoNl ( u32 hostlong );
u16 SOC_HtoNs ( u16 hostshort );
u32 SOC_NtoHl ( u32 netlong );
u16 SOC_NtoHs ( u16 netshort );

Arguments

netlong 32-bit integer in network byte order.
netshort 16-bit integer in network byte order.
hostlong 32-bit integer in host byte order.
hostshort 16-bit integer in host byte order.

Return Values

SOCHtoNl() and SOCHtoNs() return the values of the arguments converted from host byte order to network byte order.

SOCNtoHl() and SOCNtoHs() return the values of the arguments converted from network byte order to host byte order.

Description

These functions convert 16- or 32-bit values between network byte order and host byte order.

See Also

Revision History

09/13/2005 Initial version.