2 * Copyright (C) 2006-2009 Stig Venaas <venaas@uninett.no>
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
13 struct addrinfo *addrinfo;
16 int addhostport(struct list **hostports, char *hostport, char *portdefault, uint8_t prefixok);
17 void freehostports(struct list *hostports);
18 int resolvehostports(struct list *hostports, int socktype);
19 struct addrinfo *resolvepassiveaddrinfo(char *hostport, char *default_port, int socktype);
20 int addressmatches(struct list *hostports, struct sockaddr *addr);
21 int connecttcphostlist(struct list *hostports, struct addrinfo *src);