![]() |
MAK RTIspy API Documentation for HLA 1.3
|
The DtGsRtiConnection class extends the DtRtiConnection class to allow messages to be sent to multiple stored destination addresses. More...
Inheritance diagram for DtGsRtiConnection:
Collaboration diagram for DtGsRtiConnection:Public Member Functions | |
| DtGsRtiConnection (DtUdpMsgSocket *skt, const MAKRti::DtInetAddr &destAddr) | |
| Constructor Accepts pre-created DtNetSocket (or subclass) and default destination address to use when sending and receiving. | |
| virtual | ~DtGsRtiConnection () |
| Destructor. | |
| virtual int | send (const DtRtiMsg &msg, const MAKRti::DtInetAddr &destaddr) |
| Send a message to the group socket destinations If the supplied destination is non zero, the message is sent to all destinations except the connection's default destination (if it happens to have been added as a destination to the group socket). | |
| virtual void | removeAllRemoteSites () |
| Clear the list of remote sites. | |
| virtual void | addRemoteSite (const MAKRti::DtInetAddr &addr) |
| Add a destination address to the list. | |
| virtual void | removeRemoteSite (const MAKRti::DtInetAddr &addr) |
| Remove a destination address from the list. | |
Protected Member Functions | |
| virtual int | sendToAllRemoteSites (caddr_t pkt, size_t size, const MAKRti::DtInetAddr &dwSkipAddr=MAKRti::DtInetAddr::inaddrAny()) |
| Send to all remote sites except dwSkipAddr. | |
Protected Attributes | |
| std::set< MAKRti::DtInetAddr > | myRemoteSites |
| List of DtInetAddrs (which do not need to be deleted). | |
| MAKRti::DtInetAddr | myDestAddr |
| Default destination address. Should not be added to list of remote sites. | |
| DtUdpMsgSocket * | myGroupSocket |
| Pointer to DtNetSocket (or subclass) object associated with connection. | |
Private Member Functions | |
| DtGsRtiConnection (const DtGsRtiConnection &) | |
| Copy CTOR Not implemented -- Copy Not Allowed! | |
| DtGsRtiConnection & | operator= (const DtGsRtiConnection &) |
| Assignment operator not implemented -- Assignment Not Allowed! | |
The DtGsRtiConnection class extends the DtRtiConnection class to allow messages to be sent to multiple stored destination addresses.
This class accepts any type of DtUdpMsgSocket object, including instances of DtGroupSocket and DtCompressionSocket objects. It duplicates some of the functionality of the DtGroupSocket class.
| DtGsRtiConnection::DtGsRtiConnection | ( | DtUdpMsgSocket * | skt, |
| const MAKRti::DtInetAddr & | destAddr | ||
| ) |
Constructor Accepts pre-created DtNetSocket (or subclass) and default destination address to use when sending and receiving.
| DtGsRtiConnection::~DtGsRtiConnection | ( | ) | [virtual] |
Destructor.
References removeAllRemoteSites().
| DtGsRtiConnection::DtGsRtiConnection | ( | const DtGsRtiConnection & | ) | [private] |
Copy CTOR Not implemented -- Copy Not Allowed!
| void DtGsRtiConnection::addRemoteSite | ( | const MAKRti::DtInetAddr & | addr | ) | [virtual] |
Add a destination address to the list.
References myRemoteSites.
Referenced by DtConnectionMgr::createBestEffortConn().
| DtGsRtiConnection& DtGsRtiConnection::operator= | ( | const DtGsRtiConnection & | ) | [private] |
Assignment operator not implemented -- Assignment Not Allowed!
| void DtGsRtiConnection::removeAllRemoteSites | ( | ) | [virtual] |
| void DtGsRtiConnection::removeRemoteSite | ( | const MAKRti::DtInetAddr & | addr | ) | [virtual] |
Remove a destination address from the list.
References myRemoteSites.
| int DtGsRtiConnection::send | ( | const DtRtiMsg & | msg, |
| const MAKRti::DtInetAddr & | destaddr | ||
| ) | [virtual] |
Send a message to the group socket destinations If the supplied destination is non zero, the message is sent to all destinations except the connection's default destination (if it happens to have been added as a destination to the group socket).
The message is then sent to the supplied destination address.
Reimplemented from DtRtiConnection.
References DtUseFedObservers, DtNetMsgHeader::flags, myDestAddr, myGroupSocket, DtRtiMsg::netHeader(), DtUdpMsgSocket::sendMessage(), and sendToAllRemoteSites().
| int DtGsRtiConnection::sendToAllRemoteSites | ( | caddr_t | pkt, |
| size_t | size, | ||
| const MAKRti::DtInetAddr & | dwSkipAddr = MAKRti::DtInetAddr::inaddrAny() |
||
| ) | [protected, virtual] |
Send to all remote sites except dwSkipAddr.
References myGroupSocket, myRemoteSites, and DtUdpMsgSocket::sendMessage().
Referenced by send().
MAKRti::DtInetAddr DtGsRtiConnection::myDestAddr [protected] |
Default destination address. Should not be added to list of remote sites.
Referenced by send().
DtUdpMsgSocket* DtGsRtiConnection::myGroupSocket [protected] |
Pointer to DtNetSocket (or subclass) object associated with connection.
Referenced by send(), and sendToAllRemoteSites().
std::set<MAKRti::DtInetAddr> DtGsRtiConnection::myRemoteSites [protected] |
List of DtInetAddrs (which do not need to be deleted).
Referenced by addRemoteSite(), removeAllRemoteSites(), removeRemoteSite(), and sendToAllRemoteSites().