MAK RTIspy API Documentation for HLA Evolved
tcpWwwSpyAdapter.h
Go to the documentation of this file.
00001 /*********************************************************************
00002  ** Copyright (c) 2006 MaK Technologies, Inc.
00003  ** All rights reserved.
00004  *********************************************************************/
00005 /*******************************************************************************
00006  ** $RCSfile: tcpWwwSpyAdapter.h,v $ $Revision: 1.10 $ $State: Exp $
00007  *******************************************************************************/
00010 
00011 #ifndef DtTcpWwwSpyAdapter_H_
00012 #define DtTcpWwwSpyAdapter_H_
00013 
00014 #include <rtiMsConfig.h>
00015 #include <tcpMsgSocket.h>
00016 #include "webSpyUtils.h"
00017 #include "wwwSpyAdapter.h"
00018 
00023 class DT_DLL_WWW DtTcpWwwSpyAdapter : public DtWwwSpyAdapter
00024 {
00025 private:
00027    DtTcpWwwSpyAdapter( const DtTcpWwwSpyAdapter& );
00029    DtTcpWwwSpyAdapter& operator=( DtTcpWwwSpyAdapter& );
00030 
00031 public:
00032    
00034    static DtWwwSpyAdapter* create(  const DtRIDParameters& params,
00035       DtWebSpyUtils::ConnectionType type, unsigned long connId );
00036 
00037 public:
00039    virtual ~DtTcpWwwSpyAdapter();
00040 
00042    virtual DtRtiMsg* getNextMsg();
00043 
00045    virtual void postMsg( const DtRtiMsg& msg );
00046 
00047 
00048 protected:
00049 
00051    DtTcpWwwSpyAdapter(  const DtRIDParameters& params, DtWebSpyUtils::ConnectionType type,
00052       unsigned long connId );
00053 
00056    virtual bool connectToWebServer();
00057 
00061    virtual bool startWebServer();
00062 
00064    virtual bool getConnectMsg();
00065 
00067    virtual void sendTypeInfo();
00068 
00070    DtRtiMsg* netRead( int *retCode) const;
00071 
00072 protected:
00073 
00074    MAKRti::DtInetAddr   myWebServerAddr;
00075    unsigned int myWebServerPort;
00076    DtTcpMsgSocket* mySocket;
00077 };
00078 
00079 #endif //! DtTcpWwwSpyAdapter_H_

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)