]> sjero.net Git - wget/blob - src/host.h
[svn] Don't reuse IP addresses proven to be faulty, unless only such ones remain.
[wget] / src / host.h
1 /* Declarations for host.c
2    Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc.
3
4 This file is part of GNU Wget.
5
6 GNU Wget is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 GNU Wget is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with Wget; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
19
20 #ifndef HOST_H
21 #define HOST_H
22
23 struct url;
24 struct address_list;
25
26 /* Function declarations */
27 struct address_list *lookup_host PARAMS ((const char *, int));
28 char *herrmsg PARAMS ((int));
29
30 void address_list_get_bounds PARAMS ((struct address_list *, int *, int *));
31 void address_list_copy_one PARAMS ((struct address_list *, int,
32                                     unsigned char *));
33 int address_list_match_all PARAMS ((struct address_list *,
34                                     struct address_list *));
35 void address_list_set_faulty PARAMS ((struct address_list *, int));
36 void address_list_release PARAMS ((struct address_list *));
37
38 /* This was originally going to be a macro, but then every caller
39    would have to #include the netinet stuff.  */
40 char *pretty_print_address PARAMS ((const unsigned char *));
41
42 int accept_domain PARAMS ((struct url *));
43 int sufmatch PARAMS ((const char **, const char *));
44
45 void host_cleanup PARAMS ((void));
46
47 #endif /* HOST_H */