The friendly Operating System for the Internet of Things
bytes.h File Reference

System-internal byte operations. More...

Detailed Description

#include "byteorder.h"
+ Include dependency graph for bytes.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define htonl(hostlong)   HTONL(hostlong)
 Convert values between host and network byte order. More...
 
#define htons(hostshort)   HTONS(hostshort)
 Convert values between host and network byte order. More...
 
#define ntohl(netlong)   NTOHL(netlong)
 Convert values between host and network byte order. More...
 
#define ntohs(netshort)   NTOHS(netshort)
 Convert values between host and network byte order. More...
 
typedef size_t socklen_t
 socket address length
 

Macro Definition Documentation

#define htonl (   hostlong)    HTONL(hostlong)
See also
The Open Group Base Specification Issue 7, htonl
Parameters
[in]hostlongA 32 bit number.
Returns
The argument value converted from host to network byte order.

Definition at line 41 of file bytes.h.

#define htons (   hostshort)    HTONS(hostshort)
See also
The Open Group Base Specification Issue 7, htons
Parameters
[in]hostshortA 16 bit number.
Returns
The argument value converted from host to network byte order.

Definition at line 56 of file bytes.h.

#define ntohl (   netlong)    NTOHL(netlong)
See also
The Open Group Base Specification Issue 7, ntohl
Parameters
[in]netlongA 32-bit integer number.
Returns
The argument value converted from network to host byte order.

Definition at line 71 of file bytes.h.

#define ntohs (   netshort)    NTOHS(netshort)
See also
The Open Group Base Specification Issue 7, ntohs
Parameters
[in]netshortA 16-bit integer number.
Returns
The argument value converted from network to host byte order.

Definition at line 86 of file bytes.h.