-
-
Save aconbere/aaecd7b5d40ad687cccd6f6c5189d2b2 to your computer and use it in GitHub Desktop.
linux netdb header that defines addrinfo struct
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct addrinfo | |
{ | |
int ai_flags; /* Input flags. */ | |
int ai_family; /* Protocol family for socket. */ | |
int ai_socktype; /* Socket type. */ | |
int ai_protocol; /* Protocol for socket. */ | |
socklen_t ai_addrlen; /* Length of socket address. */ | |
struct sockaddr *ai_addr; /* Socket address for socket. */ | |
char *ai_canonname; /* Canonical name for service location. */ | |
struct addrinfo *ai_next; /* Pointer to next in list. */ | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment