ekg2  GIT master
srv.h
Idź do dokumentacji tego pliku.
1 /*
2  * (C) Copyright 2004-2005 Michal 'GiM' Spadlinski <gim at skrzynka dot pl>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License Version 2 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16  */
17 
18 #ifndef __EKG_SRV_H
19 #define __EKG_SRV_H
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 typedef struct _gim_host gim_host;
26 
27 char *ekg_inet_ntostr(int family, void *buf);
28 
29 int srv_resolver(gim_host **hostlist, const char *hostname, const int proto_port, const int port, const int proto);
31 
32 int resolve_missing_entries(gim_host **hostlist);
33 int basic_resolver(gim_host **hostlist, const char *hostname, int port);
34 
35 void write_out_and_destroy_list(int fd, gim_host *hostlist);
36 
37 #define DNS_SRV_MAX_PRIO 0xffff
38 extern const int DNS_NS_MAXDNAME;
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif /* __EKG_SRV_H */
45 
46 /*
47  * Local Variables:
48  * mode: c
49  * c-file-style: "k&r"
50  * c-basic-offset: 8
51  * indent-tabs-mode: t
52  * End:
53  */
const int DNS_NS_MAXDNAME
Definition: srv.c:104
void write_out_and_destroy_list(int fd, gim_host *hostlist)
Definition: srv.c:551
int gim_host_cmp(const gim_host *data1, const gim_host *data2)
Definition: srv.c:106
Definition: srv.c:91
LIST_ADD_COMPARE(gim_host_cmp, gim_host *)
int basic_resolver(gim_host **hostlist, const char *hostname, int port)
Definition: srv.c:467
int srv_resolver(gim_host **hostlist, const char *hostname, const int proto_port, const int port, const int proto)
Definition: srv.c:247
char * ekg_inet_ntostr(int family, void *buf)
Definition: srv.c:117
guint16 port
Definition: srv.c:98
int resolve_missing_entries(gim_host **hostlist)
Definition: srv.c:447