MAK RTIspy API Documentation for HLA 1516
Public Member Functions | Static Public Member Functions | Protected Member Functions
DtMacAddrMsg Class Reference

The DtMacAddrMsg defines a msg used by forwarders to connect. More...

+ Inheritance diagram for DtMacAddrMsg:
+ Collaboration diagram for DtMacAddrMsg:

List of all members.

Public Member Functions

 DtMacAddrMsg (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Constructors.
 DtMacAddrMsg (const DtNetMacAddrMsg *netRepMsg, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
virtual ~DtMacAddrMsg ()
 Destructor.
virtual DtRtiMsgclone (bool copy=true) const
 Return a copy/empty object of the same type as this.
virtual void printData () const
 Print the data section.
virtual void setMacAddr (unsigned long long addr)
 Accessor and mutators for the MAC address of the sender.
virtual unsigned long long macAddr () const
virtual void setSenderConnecting (bool yesNo)
 Accessor and mutators for whether the sender of the message is also making a connection to the recipient and the recipient should use the MAC Addr to determine whether to drop its connections.
virtual bool senderConnecting () const

Static Public Member Functions

static DtRtiMsgcreate (const DtNetMsgHeader *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Creators.
static DtRtiMsgcreate (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
static void addCallback (DtConnectionMgr *conn, DtMacAddrCb cb, void *usr)
 Adds or removes a callback with the given connection manager for this message type.
static void removeCallback (DtConnectionMgr *conn, DtMacAddrCb cb, void *usr)

Protected Member Functions

virtual DtNetMacAddrMsgnetMacAddrMsg ()
 The network representation for the DtMacADdrMsg message.
virtual const DtNetMacAddrMsgnetMacAddrMsg () const
virtual DtRtiMsgKind internalDtRtiMsgKind ()
 Returns the kind of a DtMacAddrMsg message.
virtual int minSize () const
 Returns minimum size of a message, including header.

Detailed Description

The DtMacAddrMsg defines a msg used by forwarders to connect.


Constructor & Destructor Documentation

DtMacAddrMsg::DtMacAddrMsg ( DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER)

Constructors.

References DtRtiMsg::initDtRtiMsg(), and internalDtRtiMsgKind().

Referenced by clone(), and create().

DtMacAddrMsg::DtMacAddrMsg ( const DtNetMacAddrMsg netRepMsg,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)

Destructor.


Member Function Documentation

void DtMacAddrMsg::addCallback ( DtConnectionMgr conn,
DtMacAddrCb  cb,
void *  usr 
) [static]

Adds or removes a callback with the given connection manager for this message type.

References DtConnectionMgr::addMsgCallback(), and DtMacAddrMsgKind.

DtRtiMsg * DtMacAddrMsg::clone ( bool  copy = true) const [virtual]

Return a copy/empty object of the same type as this.

Implements DtRtiMsg.

References DtMacAddrMsg(), and netMacAddrMsg().

DtRtiMsg * DtMacAddrMsg::create ( const DtNetMsgHeader initial,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
) [static]

Creators.

References DtMacAddrMsg().

DtRtiMsg * DtMacAddrMsg::create ( DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER) [static]

References DtMacAddrMsg().

Returns the kind of a DtMacAddrMsg message.

Implements DtRtiMsg.

References DtMacAddrMsgKind.

Referenced by DtMacAddrMsg().

unsigned long long DtMacAddrMsg::macAddr ( ) const [virtual]
int DtMacAddrMsg::minSize ( ) const [protected, virtual]

Returns minimum size of a message, including header.

DtNetMacAddrMsg * DtMacAddrMsg::netMacAddrMsg ( ) [protected, virtual]

The network representation for the DtMacADdrMsg message.

Referenced by clone(), macAddr(), senderConnecting(), setMacAddr(), and setSenderConnecting().

const DtNetMacAddrMsg * DtMacAddrMsg::netMacAddrMsg ( ) const [protected, virtual]
void DtMacAddrMsg::printData ( ) const [virtual]

Print the data section.

References macAddr().

void DtMacAddrMsg::removeCallback ( DtConnectionMgr conn,
DtMacAddrCb  cb,
void *  usr 
) [static]
bool DtMacAddrMsg::senderConnecting ( ) const [virtual]
void DtMacAddrMsg::setMacAddr ( unsigned long long  addr) [virtual]

Accessor and mutators for the MAC address of the sender.

References DtNetMacAddrMsg::macAddress, and netMacAddrMsg().

Referenced by DtInOutForwarderPort::sendMacAddrMsg().

void DtMacAddrMsg::setSenderConnecting ( bool  yesNo) [virtual]

Accessor and mutators for whether the sender of the message is also making a connection to the recipient and the recipient should use the MAC Addr to determine whether to drop its connections.

Only pertinent when not configuring via routes file.

References netMacAddrMsg(), and DtNetMacAddrMsg::senderAlsoAttempting.

Referenced by DtInOutForwarderPort::sendMacAddrMsg().


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)