ekg2
|
00001 /* $Id: $ */ 00002 00003 /* 00004 * (C) Copyright XXX 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License Version 2 as 00008 * published by the Free Software Foundation. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 */ 00019 00020 #ifndef __EKG_NET_H 00021 #define __EKG_NET_H 00022 #ifndef EKG2_WIN32_NOFUNCTION 00023 00024 #include "plugins.h" 00025 #include "sessions.h" 00026 #include "srv.h" 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif 00031 00032 #ifndef INADDR_NONE 00033 # define INADDR_NONE (unsigned long) 0xffffffff 00034 #endif 00035 00036 watch_t *ekg_resolver2(plugin_t *plugin, const char *server, watcher_handler_func_t async, void *data); 00037 watch_t *ekg_resolver4(plugin_t *plugin, const char *server, watcher_handler_func_t async, void *data, const int proto_port, const int port, const int proto); 00038 00039 watch_t *ekg_connect(session_t *session, const char *server, const int proto_port, const int port, watcher_handler_func_t async); 00040 00041 #ifdef __cplusplus 00042 } 00043 #endif 00044 00045 #endif /* EKG2_WIN32_NOFUNCTION */ 00046 #endif /* __EKG_NET_H */ 00047 00048 /* 00049 * Local Variables: 00050 * mode: c 00051 * c-file-style: "k&r" 00052 * c-basic-offset: 8 00053 * indent-tabs-mode: t 00054 * End: 00055 */