ArvernOS
Loading...
Searching...
No Matches
inet.h File Reference
#include <sys/socket.h>
#include <sys/types.h>
Include dependency graph for inet.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  in_addr
 
struct  sockaddr_in
 

Macros

#define HTONS(n)   ((((n) & 0xFF) << 8) | (((n) & 0xFF00) >> 8))
 

Macro Definition Documentation

◆ HTONS

#define HTONS ( n)    ((((n) & 0xFF) << 8) | (((n) & 0xFF00) >> 8))
Todo
Ideally, we'd check the endianness of the system but this project only deals with little endian system so far...