Go to the source code of this file.
Defines | |
#define | ntohs(n) ( (((n) & 0xFF00) >> 8) | (((n) & 0x00FF) << 8) ) |
Network to host conversion for a word. | |
#define | htons(n) ( (((n) & 0xFF00) >> 8) | (((n) & 0x00FF) << 8) ) |
Host to network conversion for a word. | |
#define | ntohl(n) |
Network to host conversion for a double word. | |
#define | htonl(n) |
Host to network conversion for a double word. |
Definition in file network.h.
|
Value: ( (((n) & 0xFF000000) >> 24) | (((n) & 0x00FF0000) >> 8) \ | (((n) & 0x0000FF00) << 8) | (((n) & 0x000000FF) << 24) )
|
|
Host to network conversion for a word.
|
|
Value: ( (((n) & 0xFF000000) >> 24) | (((n) & 0x00FF0000) >> 8) \ | (((n) & 0x0000FF00) << 8) | (((n) & 0x000000FF) << 24) )
|
|
Network to host conversion for a word.
|