3 int ai_flags; /* Input flags. */
4 int ai_family; /* Protocol family for socket. */
5 int ai_socktype; /* Socket type. */
6 int ai_protocol; /* Protocol for socket. */
7 socklen_t ai_addrlen; /* Length of socket address. */
8 struct sockaddr *ai_addr; /* Socket address for socket. */
9 char *ai_canonname; /* Canonical name for service location. */
10 struct addrinfo *ai_next; /* Pointer to next in list. */