Codebase list httping / dee4e69 res.h
dee4e69

Tree @dee4e69 (Download .tar.gz)

res.h @dee4e69raw · history · blame

/* Released under GPLv2 with exception for the OpenSSL library. See license.txt */
/* $Revision$ */

#define incopy(a)       *((struct in_addr *)a)

int resolve_host(const char *host, struct addrinfo **ai, char use_ipv6, int portnr);
struct addrinfo * select_resolved_host(struct addrinfo *ai, char use_ipv6);
void get_addr(struct addrinfo *ai_use, struct sockaddr_in6 *addr);

int resolve_host_ipv4(const char *host, struct sockaddr_in *addr);