net2.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile$
00003                              -------------------
00004     cvs         : $Id: net2.h 932 2005-11-22 01:09:26Z aquamaniac $
00005     begin       : Mon Feb 09 2004
00006     copyright   : (C) 2004 by Martin Preuss
00007     email       : martin@libchipcard.de
00008 
00009  ***************************************************************************
00010  *                                                                         *
00011  *   This library is free software; you can redistribute it and/or         *
00012  *   modify it under the terms of the GNU Lesser General Public            *
00013  *   License as published by the Free Software Foundation; either          *
00014  *   version 2.1 of the License, or (at your option) any later version.    *
00015  *                                                                         *
00016  *   This library is distributed in the hope that it will be useful,       *
00017  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00018  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00019  *   Lesser General Public License for more details.                       *
00020  *                                                                         *
00021  *   You should have received a copy of the GNU Lesser General Public      *
00022  *   License along with this library; if not, write to the Free Software   *
00023  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston,                 *
00024  *   MA  02111-1307  USA                                                   *
00025  *                                                                         *
00026  ***************************************************************************/
00027 
00028 #ifndef GWEN_NET2_H
00029 #define GWEN_NET2_H
00030 
00031 
00032 #include <gwenhywfar/netlayer.h>
00033 
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037 
00046 #define GWEN_NET2_TIMEOUT_NONE    (0)
00047 
00048 #define GWEN_NET2_TIMEOUT_FOREVER (-1)
00049 
00052 GWENHYWFAR_API
00053 void GWEN_Net_AddConnectionToPool(GWEN_NETLAYER *nl);
00054 
00055 GWENHYWFAR_API
00056 void GWEN_Net_DelConnectionFromPool(GWEN_NETLAYER *nl);
00057 
00063 GWENHYWFAR_API
00064 GWEN_NETLAYER_RESULT GWEN_Net_HeartBeat(int timeout);
00065 
00066 
00067 GWENHYWFAR_API
00068 int GWEN_Net_HasActiveConnections();
00069 
00070 GWENHYWFAR_API
00071 int GWEN_Net_HasListeningConnections();
00072 
00073 
00074 GWENHYWFAR_API
00075 int GWEN_Net_GetIsWorkDebugMode();
00076 
00077 #ifdef __cplusplus
00078 }
00079 #endif
00080 
00081 
00082 #endif /* GWEN_NET_H */
00083 

Generated on Tue May 1 12:56:30 2007 for gwenhywfar by  doxygen 1.5.1