Man Linux: Main Page and Category List

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;

SEE ALSO

       YAddHost(3) YRemoveHost(3)