Simple tools for networking / objects in plain C Snapshot
Classes | Defines | Functions
endutil.h File Reference
#include <cutils/base.h>
#include <arpa/inet.h>

Go to the source code of this file.

Classes

union  QUAD

Defines

#define n2h_uint8_t(val)   (val)
#define n2h_int8_t(val)   (val)
#define n2h_uint16_t(val)   ntohs( val )
#define n2h_int16_t(val)   ntohs( val )
#define n2h_uint32_t(val)   ntohl( val )
#define n2h_int32_t(val)   ntohl( val )
#define n2h_int64_t(val)   n2h_uint64_t( val )
#define h2n_uint8_t(val)   (val)
#define h2n_int8_t(val)   (val)
#define h2n_uint16_t(val)   htons( val )
#define h2n_int16_t(val)   htons( val )
#define h2n_uint32_t(val)   htonl( val )
#define h2n_int32_t(val)   htonl( val )
#define h2n_int64_t(val)   h2n_uint64_t( val )

Functions

M_INLINE uint64_t n2h_uint64_t (uint64_t val)
M_INLINE uint64_t h2n_uint64_t (uint64_t val)