Package list httping / 65ecf430-d77a-4d26-8364-40bda788afe6/main res.h
65ecf430-d77a-4d26-8364-40bda788afe6/main

Tree @65ecf430-d77a-4d26-8364-40bda788afe6/main (Download .tar.gz)

res.h @65ecf430-d77a-4d26-8364-40bda788afe6/mainraw · history · blame

1
2
3
4
5
6
7
8
9
/* Released under AGPL v3 with exception for the OpenSSL library. See license.txt */

#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);