getaddrinfo failed code 12

Lukasz Biegaj pio w elrond.rivendell.okey.pl
Pon, 17 Gru 2001, 23:46:45 MET


Przykladowy kod z
http://docsrv.caldera.com:1997/SDK_netapi/sockD.PortIPv6examples.html

        struct addrinfo req, *ans; int code, s;
        req.ai_flags = 0; req.ai_family = PF_INET6;  req.ai_protocol = 0;
        if ((code = getaddrinfo(argv[1], "login", &req, &ans)) != 0) {
                fprintf(stderr, "rlogin: getaddrinfo failed code %d\n",
                        code);  exit(1);
        }
[...]


po uruchomieniu dostaje komunikat 
getaddrinfo failed code 12

w netdb.h znajduje:
/*
 * Error return codes from getaddrinfo()
 */
#define EAI_ADDRFAMILY   1      /* address family for hostname not supported */
#define EAI_AGAIN        2      /* temporary failure in name resolution */
#define EAI_BADFLAGS     3      /* invalid value for ai_flags */
[...]
#define EAI_BADHINTS    12

co to jest za blad, co go powoduje?

-- 
Lukasz Biegaj
lukasz w biegaj.net




Więcej informacji o liście dyskusyjnej 6BONE-PL