12 #ifndef ROC_CORE_ENDIAN_H_
13 #define ROC_CORE_ENDIAN_H_
15 #include <arpa/inet.h>
17 #include <netinet/in.h>
18 #include <sys/types.h>
uint16_t hton16(uint16_t v)
Host to network (16 bits).
uint32_t ntoh32(uint32_t v)
Network to host (32 bits).
uint16_t ntoh16(uint16_t v)
Network to host (16 bits).
uint32_t hton32(uint32_t v)
Host to network (32 bits).