ekg/net.h

Go to the documentation of this file.
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_resolver3(plugin_t *plugin, const char *server, watcher_handler_func_t async, void *data, const int port, const int proto);
00038 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);
00039 
00040 watch_t *ekg_connect(session_t *session, const char *server, const int proto_port, const int port, watcher_handler_func_t async);
00041 
00042 #ifdef __cplusplus
00043 }
00044 #endif
00045 
00046 #endif /* EKG2_WIN32_NOFUNCTION */
00047 #endif /* __EKG_NET_H */
00048 
00049 /*
00050  * Local Variables:
00051  * mode: c
00052  * c-file-style: "k&r"
00053  * c-basic-offset: 8
00054  * indent-tabs-mode: t
00055  * End:
00056  */

Generated on Sat Nov 22 22:30:41 2008 for ekg2 by  doxygen 1.5.1