man YIPUnion (Fonctions bibliothèques) - IP address structures
NAME
YIPUnion - IP address structures
STRUCTURES
typedef union {
u_int32_t whole;
u_int8_t charaddr[4];
} YIPUnion;
To specify the address 127.0.0.1, use:
YIPUnion ip;
ip.charaddr[0] = 127;
ip.charaddr[1] = 0;
ip.charaddr[2] = 0;
ip.charaddr[3] = 1;