![]() |
MAK RTIspy API Documentation for HLA 1.3
|
The DtAssistantConnQueryMsg defines a wrapper for the messages sent to and from the Assistant to query for connection information and respond with the connection information. More...
Inheritance diagram for DtAssistantConnQueryMsg:
Collaboration diagram for DtAssistantConnQueryMsg:Public Member Functions | |
| DtAssistantConnQueryMsg (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructor. | |
| DtAssistantConnQueryMsg (const DtNetAssistantConnQueryMsg *netRep, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructor. | |
| virtual | ~DtAssistantConnQueryMsg () |
| Destructor. | |
| virtual DtAssistantMsg * | clone (bool copy=true) const |
| Return a copy/empty object of the same type as this. | |
| virtual MAKRti::DtInetAddr | reliableIpAddress () const |
| Get reliable IP address. | |
| virtual MAKRti::DtInetAddr | bestEffortIpAddress () const |
| Get best effort IP address. | |
| virtual MAKRti::DtInetAddr | networkInterfaceAddress () const |
| Get local network interface address to be used. | |
| virtual MAKRti::DtInetUtils::DtInetAddrFamily | addressFamily () const |
| Get the address family. | |
| virtual int | udpPort () const |
| Get UDP port. | |
| virtual int | tcpPort () const |
| Get TCP port. | |
| virtual bool | useRtiexec () const |
| Get whether rtiexec should be used. | |
| virtual void | setIsAssistantToAssistant (bool yesNo) |
| Set whether this is from an assistant to assistant client. | |
| virtual bool | isAssistantToAssistant () const |
| Get whether this is from an assistant to assistant client. | |
| virtual bool | forceFullCompliance () const |
| Get whether full compliance should be forced. | |
| virtual bool | isAccepted () const |
| Get whether query was accepted. | |
| virtual bool | isError () const |
| Get whether this query is due to a connection error. | |
| virtual MAKRti::DtInetAddr | additionalForwarderConnectionAddr () const |
| The forwarding component should attempt to make an additional connection to the specified address. | |
| virtual int | forwarderPort () const |
| The forwarding component should use the specified port for forwarder to forwarder connections. | |
| virtual void | printData () const |
| Print the data section. | |
| virtual void | setLRCParameters (const MAKRti::DtInetAddr &address, const MAKRti::DtInetAddr &bestEffortIpAddr, const MAKRti::DtInetAddr &networkInterfaceToUse, int udpPort, int tcpPort, bool useRtiExec, bool isForceFullCompliance, int forwarderPort, bool isAccepted) |
| virtual void | setForwardingParameters (const MAKRti::DtInetAddr &addr, const MAKRti::DtInetAddr &bestEffortAddr, const MAKRti::DtInetAddr &networkInterface, int udpPort, int tcpPort, bool isFullyCompliant, int forwarderPort, const MAKRti::DtInetAddr &additionalForwarder, bool isAccepted) |
| virtual void | setError (bool val) |
| Set whether this query is due to a connection error. | |
Public Member Functions inherited from DtAssistantMsg | |
| virtual | ~DtAssistantMsg () |
| Destructor. | |
| virtual DtNetAssistantMsgHeader * | netHeader () const |
| Get header of network representation. | |
| virtual int | version () const |
| Return the message version. | |
| virtual bool | isValidVersion () const |
| Returns bool: message version is valid? | |
| virtual DtAssistantMsgKind | msgKind () const |
| Get the message kind. | |
| virtual void | print () const |
| Printing functions. | |
| virtual void | printHeader () const |
| virtual bool | isOk () const |
| Message is good? | |
| bool | isAssistantToAssistantMessage () const |
| Returns whether or not this message contains source/destination information included in messages sent between assistants. | |
| virtual MAKRti::DtInetAddr | sourceAddr () const |
| Get/Set the IP address of the source of this message. | |
| virtual void | setSourceAddr (const MAKRti::DtInetAddr &addr) |
| virtual int | sourceId () const |
| Get/Set the ID of the source of this message. | |
| virtual void | setSourceId (int id) |
| virtual MAKRti::DtString | sourceHost () const |
| Get/Set the host name of the source of this message. | |
| virtual void | setSourceHost (const MAKRti::DtString &addr) |
| virtual MAKRti::DtInetAddr | destAddr () const |
| Get/Set the IP address of the destination of this message. | |
| virtual void | setDestAddr (const MAKRti::DtInetAddr &addr) |
| virtual int | destId () const |
| Get/Set the ID of the destination of this message. | |
| virtual void | setDestId (int id) |
| virtual int | compId () const |
| Get/Set the related component's connection ID. | |
| virtual void | setCompId (int compId) |
Static Public Member Functions | |
| static DtAssistantMsg * | create (const DtNetAssistantMsgHeader *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| Creator. | |
| static DtAssistantMsg * | create (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| Creator. | |
| static void | addCallback (DtRtiAssistantServer *conn, DtAssistantConnQueryCb cb, void *usr) |
| Callback management. | |
| static void | removeCallback (DtRtiAssistantServer *conn, DtAssistantConnQueryCb cb, void *usr) |
| static void | addCallback (DtAssistantMsgQueue *queue, DtAssistantConnQueryCb cb, void *usr) |
| static void | removeCallback (DtAssistantMsgQueue *queue, DtAssistantConnQueryCb cb, void *usr) |
Static Public Member Functions inherited from DtAssistantMsg | |
| static const char * | kindToString (DtAssistantMsgKind kind) |
| Returns the name of the message, by kind enumeration. | |
Protected Member Functions | |
| virtual void | setReliableIpAddress (const MAKRti::DtInetAddr &ipAddress) |
| Set reliable IP address. | |
| virtual void | setBestEffortIpAddress (const MAKRti::DtInetAddr &ipAddress) |
| Set best effort IP address. | |
| virtual void | setNetworkInterfaceAddress (const MAKRti::DtInetAddr &address) |
| Set local network interface address to be used. | |
| virtual void | setAddressFamily (MAKRti::DtInetUtils::DtInetAddrFamily addrFamily) |
| Set address family (IPv6 or IPv4) which the is being used. | |
| virtual void | setUdpPort (int port) |
| Set UDP port. | |
| virtual void | setTcpPort (int port) |
| Set TCP port. | |
| virtual void | setUseRtiexec (bool val) |
| Set whether rtiexec should be used. | |
| virtual void | setForceFullCompliance (bool val) |
| Set whether full compliance should be forced. | |
| virtual void | setAccepted (bool val) |
| Set whether query was accepted. | |
| virtual void | setAdditionalForwarderConnectionAddr (const MAKRti::DtInetAddr &addr) |
| The forwarding component should attempt to make an additional connection to the specified address. | |
| virtual void | setForwarderPort (int port) |
| The forwarding component should use the specified port for forwarder to forwarder connections. | |
| virtual void | setAdditionalForwarderSize (unsigned long size) |
| virtual unsigned long | additionalForwarderSize () const |
| virtual const char * | additionalForwarderPtr () const |
| virtual char * | additionalForwarderPtr () |
| virtual DtNetAssistantConnQueryMsg * | netAssistantConnQueryMsg () |
| The network representation. | |
| virtual const DtNetAssistantConnQueryMsg * | netAssistantConnQueryMsg () const |
| virtual DtAssistantMsgKind | internalMsgKind () |
| Returns the kind of a DtAssistantConnQueryMsg Msg. | |
| virtual int | minSize () const |
| Returns minimum size of a message, including header. | |
Protected Member Functions inherited from DtAssistantMsg | |
| DtAssistantMsg () | |
| Constructor. | |
| virtual void | sizeChanged (int size) |
| Called whenever size is changed using changeSize, or insert/deleteBytes. | |
| void | initAssistantMsg (int size, DtAssistantMsgKind msgKindVal, DtBufferPtr buffer) |
| Called by ctor, so not virtual. | |
| void | initAssistantMsg (const void *initial, int size, DtBufferPtr buffer) |
| void | initAssistantMsg (const DtNetAssistantMsgHeader *header, DtBufferPtr buffer) |
| virtual void | adjustBytes (int offset, int numBytes) |
| Adjust numBytes bytes at the indicated offset in the net rep. | |
| virtual void | adjustBytes (void *address, int numBytes) |
| Adjust the numBytes starting at the indicated address. | |
| virtual void | resizeForSrcDestInfo () |
| Allocates memory at the end of the message for source/destination information needed when sending messages between assistants. | |
| virtual const DtNetAssistantSrcDestInfo * | srcDestInfoPtr () const |
| Return pointer to source/destination information in the message. | |
| virtual DtNetAssistantSrcDestInfo * | srcDestInfoPtr () |
| virtual void | setSourceHostSize (unsigned long size) |
| Set/Get source host name text size. | |
| virtual unsigned long | sourceHostSize () const |
| virtual const char * | sourceHostPtr () const |
| Return pointer to source host name in message. | |
| virtual char * | sourceHostPtr () |
The DtAssistantConnQueryMsg defines a wrapper for the messages sent to and from the Assistant to query for connection information and respond with the connection information.
| DtAssistantConnQueryMsg::DtAssistantConnQueryMsg | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) |
Constructor.
References DtNetAssistantConnQueryMsg::error, DtAssistantMsg::initAssistantMsg(), internalMsgKind(), minSize(), and netAssistantConnQueryMsg().
| DtAssistantConnQueryMsg::DtAssistantConnQueryMsg | ( | const DtNetAssistantConnQueryMsg * | netRep, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
Constructor.
References DtNetAssistantConnQueryMsg::header, and DtAssistantMsg::initAssistantMsg().
|
virtual |
Destructor.
|
static |
Callback management.
References DtRtiAssistantServer::addMsgCallback(), and DtAssistantConnQueryMsgKind.
Referenced by DtAssistantConnQueryMgr::DtAssistantConnQueryMgr().
|
static |
References DtAssistantMsgQueue::addMsgCallback(), and DtAssistantConnQueryMsgKind.
|
virtual |
The forwarding component should attempt to make an additional connection to the specified address.
References additionalForwarderPtr(), and additionalForwarderSize().
Referenced by DtRtiAssistantClient::sendForwardingComponentConnQueryMsg().
|
protectedvirtual |
References netAssistantConnQueryMsg().
Referenced by additionalForwarderConnectionAddr(), and setAdditionalForwarderConnectionAddr().
|
protectedvirtual |
References netAssistantConnQueryMsg().
|
protectedvirtual |
References DtNetAssistantConnQueryMsg::additionalForwarderNameSize, and netAssistantConnQueryMsg().
Referenced by additionalForwarderConnectionAddr(), and setAdditionalForwarderConnectionAddr().
|
virtual |
Get the address family.
References netAssistantConnQueryMsg().
Referenced by bestEffortIpAddress(), networkInterfaceAddress(), and reliableIpAddress().
|
virtual |
Get best effort IP address.
References addressFamily(), and netAssistantConnQueryMsg().
Referenced by printData(), DtRtiAssistantClient::sendForwardingComponentConnQueryMsg(), and DtRtiAssistantClient::sendLRCConnQueryMsg().
|
virtual |
Return a copy/empty object of the same type as this.
Implements DtAssistantMsg.
References DtAssistantConnQueryMsg(), and netAssistantConnQueryMsg().
|
static |
Creator.
References DtAssistantConnQueryMsg().
|
static |
Creator.
References DtAssistantConnQueryMsg().
|
virtual |
Get whether full compliance should be forced.
References DtNetAssistantConnQueryMsg::forceFullCompliance, and netAssistantConnQueryMsg().
Referenced by printData(), DtRtiAssistantClient::sendForwardingComponentConnQueryMsg(), and DtRtiAssistantClient::sendLRCConnQueryMsg().
|
virtual |
The forwarding component should use the specified port for forwarder to forwarder connections.
References DtNetAssistantConnQueryMsg::forwarderPort, and netAssistantConnQueryMsg().
Referenced by DtRtiAssistantClient::sendForwardingComponentConnQueryMsg(), and DtRtiAssistantClient::sendLRCConnQueryMsg().
|
protectedvirtual |
Returns the kind of a DtAssistantConnQueryMsg Msg.
Implements DtAssistantMsg.
References DtAssistantConnQueryMsgKind.
Referenced by DtAssistantConnQueryMsg().
|
virtual |
Get whether query was accepted.
References DtNetAssistantConnQueryMsg::accepted, and netAssistantConnQueryMsg().
Referenced by printData(), DtRtiAssistantClient::sendForwardingComponentConnQueryMsg(), and DtRtiAssistantClient::sendLRCConnQueryMsg().
|
virtual |
Get whether this is from an assistant to assistant client.
References DtNetAssistantConnQueryMsg::assistant, and netAssistantConnQueryMsg().
|
virtual |
Get whether this query is due to a connection error.
References DtNetAssistantConnQueryMsg::error, and netAssistantConnQueryMsg().
Referenced by printData(), and DtAssistantConnQueryMgr::processConnQueryMsg().
|
protectedvirtual |
Returns minimum size of a message, including header.
Referenced by DtAssistantConnQueryMsg().
|
protectedvirtual |
The network representation.
Referenced by additionalForwarderPtr(), additionalForwarderSize(), addressFamily(), bestEffortIpAddress(), clone(), DtAssistantConnQueryMsg(), forceFullCompliance(), forwarderPort(), isAccepted(), isAssistantToAssistant(), isError(), networkInterfaceAddress(), reliableIpAddress(), setAccepted(), setAdditionalForwarderSize(), setAddressFamily(), setBestEffortIpAddress(), setError(), setForceFullCompliance(), setForwarderPort(), setIsAssistantToAssistant(), setNetworkInterfaceAddress(), setReliableIpAddress(), setTcpPort(), setUdpPort(), setUseRtiexec(), tcpPort(), udpPort(), and useRtiexec().
|
protectedvirtual |
|
virtual |
Get local network interface address to be used.
References addressFamily(), and netAssistantConnQueryMsg().
Referenced by DtRtiAssistantClient::sendForwardingComponentConnQueryMsg(), and DtRtiAssistantClient::sendLRCConnQueryMsg().
|
virtual |
Print the data section.
Reimplemented from DtAssistantMsg.
References bestEffortIpAddress(), forceFullCompliance(), isAccepted(), isError(), reliableIpAddress(), tcpPort(), udpPort(), and useRtiexec().
|
virtual |
Get reliable IP address.
References addressFamily(), and netAssistantConnQueryMsg().
Referenced by printData(), DtRtiAssistantClient::sendForwardingComponentConnQueryMsg(), and DtRtiAssistantClient::sendLRCConnQueryMsg().
|
static |
References DtAssistantConnQueryMsgKind, and DtRtiAssistantServer::removeMsgCallback().
Referenced by DtAssistantConnQueryMgr::~DtAssistantConnQueryMgr().
|
static |
References DtAssistantConnQueryMsgKind, and DtAssistantMsgQueue::removeMsgCallback().
|
protectedvirtual |
Set whether query was accepted.
References DtNetAssistantConnQueryMsg::accepted, and netAssistantConnQueryMsg().
Referenced by setForwardingParameters(), and setLRCParameters().
|
protectedvirtual |
The forwarding component should attempt to make an additional connection to the specified address.
References additionalForwarderPtr(), additionalForwarderSize(), rti1516e::insertBytes(), and setAdditionalForwarderSize().
Referenced by setForwardingParameters().
|
protectedvirtual |
References DtNetAssistantConnQueryMsg::additionalForwarderNameSize, and netAssistantConnQueryMsg().
Referenced by setAdditionalForwarderConnectionAddr().
|
protectedvirtual |
Set address family (IPv6 or IPv4) which the is being used.
References DtNetAssistantConnQueryMsg::inetAddrFamily, and netAssistantConnQueryMsg().
Referenced by setForwardingParameters(), and setLRCParameters().
|
protectedvirtual |
Set best effort IP address.
References DtNetAssistantConnQueryMsg::bestEffortIpAddress, and netAssistantConnQueryMsg().
Referenced by setForwardingParameters(), and setLRCParameters().
|
virtual |
Set whether this query is due to a connection error.
References DtNetAssistantConnQueryMsg::error, and netAssistantConnQueryMsg().
Referenced by DtRtiAssistantClient::sendLRCConnQueryMsg().
|
protectedvirtual |
Set whether full compliance should be forced.
References DtNetAssistantConnQueryMsg::forceFullCompliance, and netAssistantConnQueryMsg().
Referenced by setForwardingParameters(), and setLRCParameters().
|
protectedvirtual |
The forwarding component should use the specified port for forwarder to forwarder connections.
References DtNetAssistantConnQueryMsg::forwarderPort, and netAssistantConnQueryMsg().
Referenced by setForwardingParameters(), and setLRCParameters().
|
virtual |
References setAccepted(), setAdditionalForwarderConnectionAddr(), setAddressFamily(), setBestEffortIpAddress(), setForceFullCompliance(), setForwarderPort(), setNetworkInterfaceAddress(), setReliableIpAddress(), setTcpPort(), setUdpPort(), and setUseRtiexec().
Referenced by DtRtiAssistantServer::sendConnRespMsg().
|
virtual |
Set whether this is from an assistant to assistant client.
References DtNetAssistantConnQueryMsg::assistant, and netAssistantConnQueryMsg().
|
virtual |
|
protectedvirtual |
Set local network interface address to be used.
References netAssistantConnQueryMsg(), and DtNetAssistantConnQueryMsg::networkInterfaceAddress.
Referenced by setForwardingParameters(), and setLRCParameters().
|
protectedvirtual |
Set reliable IP address.
References netAssistantConnQueryMsg(), and DtNetAssistantConnQueryMsg::reliableIpAddress.
Referenced by setForwardingParameters(), and setLRCParameters().
|
protectedvirtual |
Set TCP port.
References netAssistantConnQueryMsg(), and DtNetAssistantConnQueryMsg::tcpPort.
Referenced by setForwardingParameters(), and setLRCParameters().
|
protectedvirtual |
Set UDP port.
References netAssistantConnQueryMsg(), and DtNetAssistantConnQueryMsg::udpPort.
Referenced by setForwardingParameters(), and setLRCParameters().
|
protectedvirtual |
Set whether rtiexec should be used.
References netAssistantConnQueryMsg(), and DtNetAssistantConnQueryMsg::useRtiexec.
Referenced by setForwardingParameters(), and setLRCParameters().
|
virtual |
Get TCP port.
References netAssistantConnQueryMsg(), and DtNetAssistantConnQueryMsg::tcpPort.
Referenced by printData(), DtRtiAssistantClient::sendForwardingComponentConnQueryMsg(), and DtRtiAssistantClient::sendLRCConnQueryMsg().
|
virtual |
Get UDP port.
References netAssistantConnQueryMsg(), and DtNetAssistantConnQueryMsg::udpPort.
Referenced by printData(), DtRtiAssistantClient::sendForwardingComponentConnQueryMsg(), and DtRtiAssistantClient::sendLRCConnQueryMsg().
|
virtual |
Get whether rtiexec should be used.
References netAssistantConnQueryMsg(), and DtNetAssistantConnQueryMsg::useRtiexec.
Referenced by printData(), and DtRtiAssistantClient::sendLRCConnQueryMsg().