![]() |
MAK RTIspy API Documentation for HLA 1.3
|
00001 /********************************************************************* 00002 ** Copyright (c) 2006 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: wwwSpyHttpConnMgr.h,v $ $Revision: 1.7 $ $State: Exp $ 00007 *******************************************************************************/ 00010 00011 #ifndef DtWebSpyHttpConnectionMgr_H_ 00012 #define DtWebSpyHttpConnectionMgr_H_ 00013 00014 #include <rtiMsConfig.h> 00015 #include "webSpyUtils.h" 00016 #include "lrcConsoleLogXmlBlock.h" 00017 #include <vlutil/vlTime.h> 00018 #include <vlutil/vlString.h> 00019 #include <memory> 00020 00021 class DtWebSpyServer; 00022 00023 00033 class DT_DLL_WWW DtWebSpyHttpConnectionMgr 00034 { 00035 00036 private: 00038 DtWebSpyHttpConnectionMgr( const DtWebSpyHttpConnectionMgr& ); 00040 DtWebSpyHttpConnectionMgr& operator=( DtWebSpyHttpConnectionMgr& ); 00041 00042 public: 00043 00045 typedef DtWebSpyHttpConnectionMgr* (*CreatorType)( DtWebSpyServer& parent ); 00046 00048 static DtWebSpyHttpConnectionMgr* create( DtWebSpyServer& parent ); 00049 00051 static void setCreatorFunction( CreatorType creator ); 00052 00053 public: 00054 00056 virtual ~DtWebSpyHttpConnectionMgr(); 00057 00061 virtual void tick( unsigned int timeout = 0 ) = 0; 00062 00064 virtual void addConnection( const DtWebSpyUtils::ConnectionIdentifier& connInfo ) = 0; 00065 00069 virtual void updateConnection( const DtWebSpyUtils::ConnectionIdentifier& connInfo, 00070 std::auto_ptr< DtWebSpyUtils::ConnectionState > connState, bool appendToExisting ) = 0; 00071 00075 virtual void appendConnectionLogEvent( const DtWebSpyUtils::ConnectionIdentifier& connInfo, 00076 unsigned long componentId, DtLrcConsoleLogXmlBlockSP logSegmentSP ) = 0; 00077 00078 00083 virtual void removeConnection( const DtWebSpyUtils::ConnectionIdentifier& connInfo, 00084 const DtString& dropNotificationMsg = "" ) = 0; 00085 00087 const DtRIDParameters& params() const; 00088 00089 protected: 00090 00092 DtWebSpyHttpConnectionMgr( DtWebSpyServer& parent ); 00093 00094 00095 protected: 00096 00098 unsigned int myHttpPort; 00099 00101 bool myIsCentralServer; 00102 00104 DtClock myClock; 00105 00107 DtWebSpyServer& myParent; 00108 00110 static CreatorType theCreatorFunction; 00111 }; 00112 00113 #endif //! DtWebSpyHttpConnectionMgr_H_