MAK RTIspy API Documentation for HLA 1516
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions
DtAssistantConnQueryMsg Class Reference

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 DtAssistantMsgclone (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 DtNetAssistantMsgHeadernetHeader () 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 DtAssistantMsgcreate (const DtNetAssistantMsgHeader *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Creator.
static DtAssistantMsgcreate (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 DtNetAssistantSrcDestInfosrcDestInfoPtr ()
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 ()

Detailed Description

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.

Constructor & Destructor Documentation

DtAssistantConnQueryMsg::DtAssistantConnQueryMsg ( DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER)
DtAssistantConnQueryMsg::DtAssistantConnQueryMsg ( const DtNetAssistantConnQueryMsg netRep,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)
DtAssistantConnQueryMsg::~DtAssistantConnQueryMsg ( )
virtual

Destructor.

Member Function Documentation

void DtAssistantConnQueryMsg::addCallback ( DtRtiAssistantServer conn,
DtAssistantConnQueryCb  cb,
void *  usr 
)
static
void DtAssistantConnQueryMsg::addCallback ( DtAssistantMsgQueue queue,
DtAssistantConnQueryCb  cb,
void *  usr 
)
static
DtInetAddr DtAssistantConnQueryMsg::additionalForwarderConnectionAddr ( ) const
virtual

The forwarding component should attempt to make an additional connection to the specified address.

References additionalForwarderPtr(), and additionalForwarderSize().

Referenced by DtRtiAssistantClient::sendForwardingComponentConnQueryMsg().

const char * DtAssistantConnQueryMsg::additionalForwarderPtr ( ) const
protectedvirtual
char * DtAssistantConnQueryMsg::additionalForwarderPtr ( )
protectedvirtual
unsigned long DtAssistantConnQueryMsg::additionalForwarderSize ( ) const
protectedvirtual
MAKRti::DtInetUtils::DtInetAddrFamily DtAssistantConnQueryMsg::addressFamily ( ) const
virtual

Get the address family.

References netAssistantConnQueryMsg().

Referenced by bestEffortIpAddress(), networkInterfaceAddress(), and reliableIpAddress().

DtInetAddr DtAssistantConnQueryMsg::bestEffortIpAddress ( ) const
virtual
DtAssistantMsg * DtAssistantConnQueryMsg::clone ( bool  copy = true) const
virtual

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

Implements DtAssistantMsg.

References DtAssistantConnQueryMsg(), and netAssistantConnQueryMsg().

DtAssistantMsg * DtAssistantConnQueryMsg::create ( const DtNetAssistantMsgHeader initial,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)
static

Creator.

References DtAssistantConnQueryMsg().

DtAssistantMsg * DtAssistantConnQueryMsg::create ( DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER)
static

Creator.

References DtAssistantConnQueryMsg().

bool DtAssistantConnQueryMsg::forceFullCompliance ( ) const
virtual
int DtAssistantConnQueryMsg::forwarderPort ( ) const
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().

DtAssistantMsgKind DtAssistantConnQueryMsg::internalMsgKind ( )
protectedvirtual

Returns the kind of a DtAssistantConnQueryMsg Msg.

Implements DtAssistantMsg.

References DtAssistantConnQueryMsgKind.

Referenced by DtAssistantConnQueryMsg().

bool DtAssistantConnQueryMsg::isAccepted ( ) const
virtual
bool DtAssistantConnQueryMsg::isAssistantToAssistant ( ) const
virtual

Get whether this is from an assistant to assistant client.

References DtNetAssistantConnQueryMsg::assistant, and netAssistantConnQueryMsg().

bool DtAssistantConnQueryMsg::isError ( ) const
virtual

Get whether this query is due to a connection error.

References DtNetAssistantConnQueryMsg::error, and netAssistantConnQueryMsg().

Referenced by printData(), and DtAssistantConnQueryMgr::processConnQueryMsg().

int DtAssistantConnQueryMsg::minSize ( ) const
protectedvirtual

Returns minimum size of a message, including header.

Referenced by DtAssistantConnQueryMsg().

DtNetAssistantConnQueryMsg * DtAssistantConnQueryMsg::netAssistantConnQueryMsg ( )
protectedvirtual
const DtNetAssistantConnQueryMsg * DtAssistantConnQueryMsg::netAssistantConnQueryMsg ( ) const
protectedvirtual
DtInetAddr DtAssistantConnQueryMsg::networkInterfaceAddress ( ) const
virtual
void DtAssistantConnQueryMsg::printData ( ) const
virtual
DtInetAddr DtAssistantConnQueryMsg::reliableIpAddress ( ) const
virtual
void DtAssistantConnQueryMsg::removeCallback ( DtRtiAssistantServer conn,
DtAssistantConnQueryCb  cb,
void *  usr 
)
static
void DtAssistantConnQueryMsg::removeCallback ( DtAssistantMsgQueue queue,
DtAssistantConnQueryCb  cb,
void *  usr 
)
static
void DtAssistantConnQueryMsg::setAccepted ( bool  val)
protectedvirtual

Set whether query was accepted.

References DtNetAssistantConnQueryMsg::accepted, and netAssistantConnQueryMsg().

Referenced by setForwardingParameters(), and setLRCParameters().

void DtAssistantConnQueryMsg::setAdditionalForwarderConnectionAddr ( const MAKRti::DtInetAddr &  addr)
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().

void DtAssistantConnQueryMsg::setAdditionalForwarderSize ( unsigned long  size)
protectedvirtual
void DtAssistantConnQueryMsg::setAddressFamily ( MAKRti::DtInetUtils::DtInetAddrFamily  addrFamily)
protectedvirtual

Set address family (IPv6 or IPv4) which the is being used.

References DtNetAssistantConnQueryMsg::inetAddrFamily, and netAssistantConnQueryMsg().

Referenced by setForwardingParameters(), and setLRCParameters().

void DtAssistantConnQueryMsg::setBestEffortIpAddress ( const MAKRti::DtInetAddr &  ipAddress)
protectedvirtual
void DtAssistantConnQueryMsg::setError ( bool  val)
virtual

Set whether this query is due to a connection error.

References DtNetAssistantConnQueryMsg::error, and netAssistantConnQueryMsg().

Referenced by DtRtiAssistantClient::sendLRCConnQueryMsg().

void DtAssistantConnQueryMsg::setForceFullCompliance ( bool  val)
protectedvirtual

Set whether full compliance should be forced.

References DtNetAssistantConnQueryMsg::forceFullCompliance, and netAssistantConnQueryMsg().

Referenced by setForwardingParameters(), and setLRCParameters().

void DtAssistantConnQueryMsg::setForwarderPort ( int  port)
protectedvirtual

The forwarding component should use the specified port for forwarder to forwarder connections.

References DtNetAssistantConnQueryMsg::forwarderPort, and netAssistantConnQueryMsg().

Referenced by setForwardingParameters(), and setLRCParameters().

void DtAssistantConnQueryMsg::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 DtAssistantConnQueryMsg::setIsAssistantToAssistant ( bool  yesNo)
virtual

Set whether this is from an assistant to assistant client.

References DtNetAssistantConnQueryMsg::assistant, and netAssistantConnQueryMsg().

void DtAssistantConnQueryMsg::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 DtAssistantConnQueryMsg::setNetworkInterfaceAddress ( const MAKRti::DtInetAddr &  address)
protectedvirtual

Set local network interface address to be used.

References netAssistantConnQueryMsg(), and DtNetAssistantConnQueryMsg::networkInterfaceAddress.

Referenced by setForwardingParameters(), and setLRCParameters().

void DtAssistantConnQueryMsg::setReliableIpAddress ( const MAKRti::DtInetAddr &  ipAddress)
protectedvirtual
void DtAssistantConnQueryMsg::setTcpPort ( int  port)
protectedvirtual
void DtAssistantConnQueryMsg::setUdpPort ( int  port)
protectedvirtual
void DtAssistantConnQueryMsg::setUseRtiexec ( bool  val)
protectedvirtual

Set whether rtiexec should be used.

References netAssistantConnQueryMsg(), and DtNetAssistantConnQueryMsg::useRtiexec.

Referenced by setForwardingParameters(), and setLRCParameters().

int DtAssistantConnQueryMsg::tcpPort ( ) const
virtual
int DtAssistantConnQueryMsg::udpPort ( ) const
virtual
bool DtAssistantConnQueryMsg::useRtiexec ( ) const
virtual

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

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)