37 #ifdef HAVE_NETINET_IN_H 38 #include <netinet/in.h> 40 #ifdef _XOPEN_SOURCE_EXTENDED 42 #include <arpa/inet.h> 48 #define ENABLE_CURLX_PRINTF 62 int main(
int argc,
char *argv[])
65 const char *host = NULL;
69 if(!strcmp(
"--version", argv[arg])) {
79 else if(!strcmp(
"--ipv6", argv[arg])) {
84 else if(!strcmp(
"--ipv4", argv[arg])) {
95 puts(
"Usage: resolve [option] <host>\n" 125 struct addrinfo hints;
127 memset(&hints, 0,
sizeof(hints));
128 hints.ai_family =
use_ipv6 ? PF_INET6 : PF_INET;
129 hints.ai_socktype = SOCK_STREAM;
130 hints.ai_flags = AI_CANONNAME;
139 puts(
"IPv6 support has been disabled in this program");
146 he = gethostbyname(host);
static void win32_cleanup(void)
int main(int argc, char *argv[])
const char * serverlogfile
static CURLcode win32_init(void)
static const char * ipv_inuse