![]() |
MAK RTIspy API Documentation for HLA Evolved
|
The DtWebSpyRtiConnectionMgr is the RTI connection manager component of the web spy. More...
Inheritance diagram for DtWebSpyRtiConnectionMgr:
Collaboration diagram for DtWebSpyRtiConnectionMgr:Public Types | |
| typedef DtWebSpyRtiConnectionMgr *(* | CreatorType )(DtWebSpyServer &parent) |
| Web Spy RTI Connection Manager creator method. | |
Public Member Functions | |
| virtual | ~DtWebSpyRtiConnectionMgr () |
| Dtor. | |
| virtual bool | tick (unsigned int timeout=0)=0 |
| Do the actual message processing. | |
| virtual void | postCommand (const DtWebSpyUtils::ConnectionIdentifier &connInfo, std::auto_ptr< DtRtiMsg > command)=0 |
| Post the next command message from the HTTP server to the specified connection. | |
| virtual unsigned int | numConnections () const =0 |
| Return the number of current RTI component connections. | |
Static Public Member Functions | |
| static DtWebSpyRtiConnectionMgr * | create (DtWebSpyServer &parent) |
| Virtual constructor. | |
| static void | setCreatorFunction (CreatorType creator) |
| Set the concrete type for the virtual constructor method. | |
Protected Member Functions | |
| DtWebSpyRtiConnectionMgr (DtWebSpyServer &parent) | |
| Uses Virtual Constructor idiom. | |
| virtual DtString | createDescription (DtWebSpyUtils::ConnectionType connType, unsigned long connHandle, const DtString &info) const |
| Generate a text description of a connection based on connection type. | |
Protected Attributes | |
| unsigned int | myRtiPort |
| Port to which RTI components may connect if this is a network connection manager. | |
| DtWebSpyServer & | myParent |
| The server that owns this RTI conn. manager. | |
| DtClock | myClock |
| Clock for timeouts. | |
Static Protected Attributes | |
| static CreatorType | theCreatorFunction = 0 |
| RTI Connection Manager creator method. | |
Private Member Functions | |
| DtWebSpyRtiConnectionMgr (const DtWebSpyRtiConnectionMgr &) | |
| Copy and Assignment unimplemented. | |
| DtWebSpyRtiConnectionMgr & | operator= (DtWebSpyRtiConnectionMgr &) |
| Copy and Assignment unimplmented. | |
The DtWebSpyRtiConnectionMgr is the RTI connection manager component of the web spy.
It handles all connections between the web server and the RTI components.
DtWebSpyRtiConnectionMgr is a base class from which connection-type-specific conn. managers are derived (ex. TCP, or shared memory)
| typedef DtWebSpyRtiConnectionMgr*(* DtWebSpyRtiConnectionMgr::CreatorType)(DtWebSpyServer &parent) |
Web Spy RTI Connection Manager creator method.
| DtWebSpyRtiConnectionMgr::DtWebSpyRtiConnectionMgr | ( | const DtWebSpyRtiConnectionMgr & | ) | [private] |
Copy and Assignment unimplemented.
| DtWebSpyRtiConnectionMgr::~DtWebSpyRtiConnectionMgr | ( | ) | [virtual] |
Dtor.
| DtWebSpyRtiConnectionMgr::DtWebSpyRtiConnectionMgr | ( | DtWebSpyServer & | parent | ) | [protected] |
Uses Virtual Constructor idiom.
| DtWebSpyRtiConnectionMgr * DtWebSpyRtiConnectionMgr::create | ( | DtWebSpyServer & | parent | ) | [static] |
| DtString DtWebSpyRtiConnectionMgr::createDescription | ( | DtWebSpyUtils::ConnectionType | connType, |
| unsigned long | connHandle, | ||
| const DtString & | info | ||
| ) | const [protected, virtual] |
Generate a text description of a connection based on connection type.
References DtWebSpyUtils::connectionTypeString().
Referenced by DtTcpRtiConnectionMgr::establishConnection().
| virtual unsigned int DtWebSpyRtiConnectionMgr::numConnections | ( | ) | const [pure virtual] |
Return the number of current RTI component connections.
Implemented in DtTcpRtiConnectionMgr.
| DtWebSpyRtiConnectionMgr& DtWebSpyRtiConnectionMgr::operator= | ( | DtWebSpyRtiConnectionMgr & | ) | [private] |
Copy and Assignment unimplmented.
| virtual void DtWebSpyRtiConnectionMgr::postCommand | ( | const DtWebSpyUtils::ConnectionIdentifier & | connInfo, |
| std::auto_ptr< DtRtiMsg > | command | ||
| ) | [pure virtual] |
Post the next command message from the HTTP server to the specified connection.
Implemented in DtTcpRtiConnectionMgr.
| void DtWebSpyRtiConnectionMgr::setCreatorFunction | ( | CreatorType | creator | ) | [static] |
Set the concrete type for the virtual constructor method.
References theCreatorFunction.
| virtual bool DtWebSpyRtiConnectionMgr::tick | ( | unsigned int | timeout = 0 | ) | [pure virtual] |
Do the actual message processing.
Implemented in DtTcpRtiConnectionMgr.
DtClock DtWebSpyRtiConnectionMgr::myClock [protected] |
Clock for timeouts.
Referenced by DtTcpRtiConnectionMgr::establishConnection(), DtTcpRtiConnectionMgr::readAndForward(), and DtTcpRtiConnectionMgr::tick().
DtWebSpyServer& DtWebSpyRtiConnectionMgr::myParent [protected] |
The server that owns this RTI conn. manager.
Referenced by DtTcpRtiConnectionMgr::establishConnection(), DtTcpRtiConnectionMgr::readAndForward(), DtTcpRtiConnectionMgr::tcpSocketAdditionCb(), DtTcpRtiConnectionMgr::tcpSocketRemovalCb(), and DtTcpRtiConnectionMgr::tick().
unsigned int DtWebSpyRtiConnectionMgr::myRtiPort [protected] |
Port to which RTI components may connect if this is a network connection manager.
Referenced by DtTcpRtiConnectionMgr::DtTcpRtiConnectionMgr().
DtWebSpyRtiConnectionMgr::CreatorType DtWebSpyRtiConnectionMgr::theCreatorFunction = 0 [static, protected] |
RTI Connection Manager creator method.
Referenced by create(), and setCreatorFunction().