00001 /* 00002 * (C) Copyright 2004-2005 Michal 'GiM' Spadlinski <gim at skrzynka dot pl> 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License Version 2 as 00006 * published by the Free Software Foundation. 00007 * 00008 * This program is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 * GNU General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU General Public License 00014 * along with this program; if not, write to the Free Software 00015 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00016 */ 00017 00018 #ifndef __EKG_SRV_H 00019 #define __EKG_SRV_H 00020 00021 #ifdef __cplusplus 00022 extern "C" { 00023 #endif 00024 00025 typedef struct _gim_host gim_host; 00026 00027 char *ekg_inet_ntostr(int family, void *buf); 00028 00029 int srv_resolver(gim_host **hostlist, const char *hostname, const int proto_port, const int port, const int proto); 00030 LIST_ADD_COMPARE(gim_host_cmp, gim_host* ); 00031 00032 int resolve_missing_entries(gim_host **hostlist); 00033 int basic_resolver(gim_host **hostlist, const char *hostname, int port); 00034 00035 void write_out_and_destroy_list(int fd, gim_host *hostlist); 00036 00037 #define DNS_SRV_MAX_PRIO 0xffff 00038 extern const int DNS_NS_MAXDNAME; 00039 00040 #ifdef __cplusplus 00041 } 00042 #endif 00043 00044 #endif /* __EKG_SRV_H */ 00045 00046 /* 00047 * Local Variables: 00048 * mode: c 00049 * c-file-style: "k&r" 00050 * c-basic-offset: 8 00051 * indent-tabs-mode: t 00052 * End: 00053 */