MAK RTIspy API Documentation for HLA Evolved
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
DtGsRtiConnection Class Reference

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:

List of all members.

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.
DtUdpMsgSocketmyGroupSocket
 Pointer to DtNetSocket (or subclass) object associated with connection.

Private Member Functions

 DtGsRtiConnection (const DtGsRtiConnection &)
 Copy CTOR Not implemented -- Copy Not Allowed!
DtGsRtiConnectionoperator= (const DtGsRtiConnection &)
 Assignment operator not implemented -- Assignment Not Allowed!

Detailed Description

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.


Constructor & Destructor Documentation

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.

Destructor.

References removeAllRemoteSites().

Copy CTOR Not implemented -- Copy Not Allowed!


Member Function Documentation

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!

Clear the list of remote sites.

References myRemoteSites.

Referenced by ~DtGsRtiConnection().

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().


Member Data Documentation

MAKRti::DtInetAddr DtGsRtiConnection::myDestAddr [protected]

Default destination address. Should not be added to list of remote sites.

Referenced by send().

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().


The documentation for this class was generated from the following files:

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)