![]() |
MAK RTIspy API Documentation for HLA 1516
|
The DtMacAddrMsg defines a msg used by forwarders to connect. More...
Inheritance diagram for DtMacAddrMsg:
Collaboration diagram for DtMacAddrMsg:Public Member Functions | |
| DtMacAddrMsg (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructors. | |
| DtMacAddrMsg (const DtNetMacAddrMsg *netRepMsg, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| virtual | ~DtMacAddrMsg () |
| Destructor. | |
| virtual DtRtiMsg * | clone (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 DtRtiMsg * | create (const DtNetMsgHeader *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| Creators. | |
| static DtRtiMsg * | create (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 DtNetMacAddrMsg * | netMacAddrMsg () |
| The network representation for the DtMacADdrMsg message. | |
| virtual const DtNetMacAddrMsg * | netMacAddrMsg () const |
| virtual DtRtiMsgKind | internalDtRtiMsgKind () |
| Returns the kind of a DtMacAddrMsg message. | |
| virtual int | minSize () const |
| Returns minimum size of a message, including header. | |
The DtMacAddrMsg defines a msg used by forwarders to connect.
| DtMacAddrMsg::DtMacAddrMsg | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) |
Constructors.
References DtRtiMsg::initDtRtiMsg(), and internalDtRtiMsgKind().
| DtMacAddrMsg::DtMacAddrMsg | ( | const DtNetMacAddrMsg * | netRepMsg, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
References DtNetMacAddrMsg::header, and DtRtiMsg::initDtRtiMsg().
| DtMacAddrMsg::~DtMacAddrMsg | ( | ) | [virtual] |
Destructor.
| 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().
| DtRtiMsgKind DtMacAddrMsg::internalDtRtiMsgKind | ( | ) | [protected, virtual] |
Returns the kind of a DtMacAddrMsg message.
Implements DtRtiMsg.
References DtMacAddrMsgKind.
Referenced by DtMacAddrMsg().
| unsigned long long DtMacAddrMsg::macAddr | ( | ) | const [virtual] |
References DtNetMacAddrMsg::macAddress, and netMacAddrMsg().
Referenced by printData(), and DtInOutForwarderPort::processMacAddrMsg().
| 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] |
References DtMacAddrMsgKind, and DtConnectionMgr::removeMsgCallback().
| bool DtMacAddrMsg::senderConnecting | ( | ) | const [virtual] |
References netMacAddrMsg(), and DtNetMacAddrMsg::senderAlsoAttempting.
Referenced by DtInOutForwarderPort::processMacAddrMsg().
| 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().