![]() |
MAK RTIspy API Documentation for HLA 1.3
|
This class represents a network connection with another RTI component. More...
Inheritance diagram for DtRtiConnection:
Collaboration diagram for DtRtiConnection:Public Member Functions | |
| DtRtiConnection (DtMsgSocket *skt) | |
| Constructor. More... | |
| virtual | ~DtRtiConnection () |
| Destructor. More... | |
| virtual void | setMsgFactory (DtRtiMsgFactory *fact) |
| Set/Get the Message Factory used by this object. More... | |
| virtual DtRtiMsgFactory * | rtiMsgFactory () |
| virtual DtRtiMsg * | netRead (DtNetReadStatus *retCode=NULL) |
| Note: netRead() creates a new DtRtiMsg using the message factory Caller is responsible for deleting it when through. More... | |
| virtual int | send (const DtRtiMsg &msg, const MAKRti::DtInetAddr &addr=MAKRti::DtInetAddr()) |
| Send a message. More... | |
| virtual bool | flush () |
| Send buffered messages. More... | |
| virtual int | isOk () |
| Return true if the status of the connection is OK. More... | |
| virtual void | setCheckVersion (bool enableCheckVersion) |
| Set/get whether to check message version. More... | |
| virtual bool | checkVersion () const |
| virtual void | disableCheckSize () |
| Disable message size check. More... | |
| virtual void | enableCheckSize () |
| Enable message size check. More... | |
| virtual void | setFedExName (const MAKRti::DtString &newFedExName) |
| Set/Get federation execution name. NULL means "all". More... | |
| virtual const MAKRti::DtString & | fedExName () const |
| virtual void | setFedExHandle (int handle) |
| Set/Get federation execution handle. 0 means "all". More... | |
| virtual int | fedExHandle () const |
| virtual void | setFederateHandle (DtFederationHandle handle) |
| Set/Get federate handle. More... | |
| virtual DtFederationHandle | federateHandle () const |
| virtual void | setConnId (unsigned long connId) |
| Set/Get the connection ID assigned to the connection. More... | |
| virtual unsigned long | connId () const |
| virtual DtMsgSocket * | socket () |
| Returns our socket. More... | |
Protected Member Functions | |
| void | init (DtMsgSocket *s) |
Protected Attributes | |
| MAKRti::DtString | myFedExName |
| int | myFedExHandle |
| DtFederationHandle | myFedHandle |
| DtMsgSocket * | mySocket |
| DtRtiMsgFactory * | myMsgFact |
| unsigned long | myReceivedMsgCount |
| bool | myCheckSize |
| bool | myCheckVersion |
| unsigned int | myWaitEventIndex |
| unsigned long | myConnId |
| Win32 only. More... | |
Private Member Functions | |
| DtRtiConnection (const DtRtiConnection &orig) | |
| Copy CTOR not implemented. More... | |
| DtRtiConnection & | operator= (DtRtiConnection const &orig) |
| Assignment Operator not implemented. More... | |
This class represents a network connection with another RTI component.
| DtRtiConnection::DtRtiConnection | ( | DtMsgSocket * | skt | ) |
Constructor.
|
virtual |
Destructor.
|
private |
Copy CTOR not implemented.
|
virtual |
|
inlinevirtual |
References myConnId.
Referenced by setConnId().
|
virtual |
Disable message size check.
|
virtual |
Enable message size check.
|
inlinevirtual |
References myFedHandle.
|
inlinevirtual |
References myFedExHandle.
|
inlinevirtual |
References myFedExName.
|
virtual |
Send buffered messages.
Returns indication of whether the flush is complete or incomplete.
Reimplemented in DtSmRtiConnection.
|
protected |
|
virtual |
Return true if the status of the connection is OK.
|
virtual |
|
private |
Assignment Operator not implemented.
|
inlinevirtual |
References myMsgFact.
|
virtual |
Send a message.
Reimplemented in DtGsRtiConnection, and DtSmRtiConnection.
|
virtual |
Set/get whether to check message version.
This connection will filter invalid versions when enabled.
|
inlinevirtual |
|
inlinevirtual |
Set/Get federate handle.
References myFedHandle.
|
inlinevirtual |
Set/Get federation execution handle. 0 means "all".
References myFedExHandle.
|
inlinevirtual |
Set/Get federation execution name. NULL means "all".
References myFedExName.
|
virtual |
Set/Get the Message Factory used by this object.
fact becomes property of this object, meaning it will be deleted when the factory is replaced, or when the DtRtiConnection is destroyed.
|
inlinevirtual |
Returns our socket.
References mySocket.
|
protected |
|
protected |
|
protected |
Win32 only.
Referenced by connId(), and setConnId().
|
protected |
Referenced by fedExHandle(), and setFedExHandle().
|
protected |
Referenced by fedExName(), and setFedExName().
|
protected |
Referenced by federateHandle(), and setFederateHandle().
|
protected |
Referenced by rtiMsgFactory().
|
protected |
|
protected |
Referenced by socket().
|
protected |