Hauptseite | Klassenhierarchie | Alphabetische Liste | Auflistung der Klassen | Auflistung der Dateien | Klassen-Elemente

GatewayServer.h

00001 /* **************************************************************************** 00002 ** 00003 ** Projekt : FPS 00004 ** File : GatewayServer.h 00005 ** Version : $Revision: 1.12 $ 00006 ** Autor : Simon Linder 00007 ** Copyright : (C) 2001 by Analytica GmbH 00008 **----------------------------------------------------------------------------- 00009 ** 00010 ** $Id: GatewayServer.h,v 1.12 2001/08/30 06:57:45 AxelSchmidt Exp $ 00011 ** 00012 ** $Log: GatewayServer.h,v $ 00013 ** Revision 1.12 2001/08/30 06:57:45 AxelSchmidt 00014 ** Security-Port wartet nun auch falls Security inaktiv ist, IPAdresse wurde für die GatewaxServer statisch gemacht (1 Ip-Adresse für alle Ports) 00015 ** 00016 ** Revision 1.11 2001/08/20 07:19:32 AxelSchmidt 00017 ** neue Klasse CGatewaySecurity 00018 ** 00019 ** Revision 1.10 2001/08/09 07:25:23 AxelSchmidt 00020 ** Interne ID des Gateway-Servers eingefuehrt (m_nServerNr) 00021 ** 00022 ** Revision 1.9 2001/07/13 06:54:47 AxelSchmidt 00023 ** AddTrace macht Ausgaben ins EventLog 00024 ** 00025 ** Revision 1.8 2001/07/12 14:36:00 AxelSchmidt 00026 ** virtuelle Basis-Klasse CTraceObject hinzugefügt 00027 ** 00028 ** Revision 1.7 2001/07/12 07:42:57 AxelSchmidt 00029 ** Bug removed 00030 ** 00031 ** Revision 1.6 2001/07/10 07:07:25 AxelSchmidt 00032 ** Some class enhancements implemented 00033 ** 00034 ** Revision 1.5 2001/07/09 06:58:15 AxelSchmidt 00035 ** Neuer Code für FPS-Service 00036 ** 00037 ** 00038 ******************************************************************************/ 00039 00040 #include "TCPIPComm.h" 00041 #include "BernsteinMsg.h" 00042 #include "GatewaySecurity.h" 00043 00044 #ifndef _GATEWAY_SERVER_H 00045 #define _GATEWAY_SERVER_H 00046 00053 class CGatewayServer : public CBernsteinMsg, public CTCPIPComm 00054 { 00055 public: 00076 CGatewayServer( int nServerNr = 1); 00077 00079 virtual ~CGatewayServer(); 00080 00084 virtual void ConnectIndication( void ); 00085 00089 virtual void DisconnectIndication( void ); 00090 00096 virtual void Receive( void *pData, long DataLen ); 00097 00103 virtual void ReceiveRS232( const char *pData, 00104 long DataLen ); 00105 00111 static void SetParameterInput( const char * lpszIniFilename, 00112 const char * lpszRegKey, 00113 bool bRunAsService ); 00114 00117 static int GetMaxGateways( void ); 00118 00122 bool StartProcessing( void ); 00123 00127 bool StopProcessing( void ); 00128 00135 virtual void AddTrace( const char * lpszMsg, 00136 CTraceObject::eTraceLevel eLevel = CTraceObject::MT_ERROR ); 00137 00138 private: 00139 00144 void ReadIniParameters( const char * pszIniFilename = NULL ); 00145 00150 void ReadRegParameters( const char * pszRegKey = NULL ); 00151 00153 int m_nCOMParity; 00155 int m_nCOMStopBits; 00157 int m_nCOMBaudRate; 00159 int m_nCOMByteSize; 00161 std::string m_sCOMPort; 00162 00164 int m_nServerNr; 00165 00167 short m_nTCPPort; 00168 00170 static std::string m_sIPAddress; 00171 00173 static bool m_bRunAsService; 00174 00176 static std::string m_sFilePath; 00178 static std::string m_sRegKey; 00179 00180 static CGatewaySecurity m_oSecurity; 00181 }; 00182 00183 #endif //_GATEWAY_SERVER_H

Erzeugt am Tue Mar 11 14:25:08 2008 für SchunkFPS-TCPIPRS232Gateway von doxygen 1.3.7