byteorder.h File Reference

Host - network byte order manipulation functions. More...

#include <byteorder.h>
#include <sys/types.h>
Include dependency graph for byteorder.h:
This graph shows which files directly or indirectly include this file:

Defines

#define htons(number)   host2uint16_t_be(number)
 Converts the given short number (16 bit) from the host byte order to the network byte order (big endian).
#define htonl(number)   host2uint32_t_be(number)
 Converts the given long number (32 bit) from the host byte order to the network byte order (big endian).
#define ntohs(number)   uint16_t_be2host(number)
 Converts the given short number (16 bit) from the network byte order (big endian) to the host byte order.
#define ntohl(number)   uint32_t_be2host(number)
 Converts the given long number (32 bit) from the network byte order (big endian) to the host byte order.

Detailed Description

Host - network byte order manipulation functions.


Generated on Thu Mar 11 20:46:00 2010 for Networking and TCP/IP stack for HelenOS system by  doxygen 1.6.1