summaryrefslogtreecommitdiff
path: root/sockaddr.h
blob: 61866d0912ea93a47d21b43a403ad6c08379243e (plain)
1
2
3
4
5
6
7
8
9
/* klugey def'n of a socket address struct helps hide IPV4 vs. IPV6 ugliness */

typedef union sockaddr_u {
    struct sockaddr sa;
    struct sockaddr_in sa_in;
    struct sockaddr_in6 sa_in6;
} sockaddr_t;

/* sockaddr.h ends here */