![]() |
MAK RTIspy API Documentation for HLA 1516
|
Stores the information on an RTI connection known by the Assistant. More...
Collaboration diagram for DtRtiConnectionInfo:Public Member Functions | |
| DtRtiConnectionInfo () | |
| Constructor. | |
| DtRtiConnectionInfo (const MAKRti::DtString &hostname, int udpPort, int tcpPort, const MAKRti::DtInetAddr &bestEffortAddress, const MAKRti::DtInetAddr &interfaceAddr, int forwarderPort) | |
| rtiexec connection constructors | |
| DtRtiConnectionInfo (const MAKRti::DtInetAddr &reliableAddress, int udpPort, int tcpPort, const MAKRti::DtInetAddr &bestEffortAddress, const MAKRti::DtInetAddr &interfaceAddr, int forwarderPort) | |
| DtRtiConnectionInfo (const MAKRti::DtInetAddr &bestEffortAddress, int port, const MAKRti::DtInetAddr &interfaceAddr) | |
| Lightweight connection constructor. | |
| DtRtiConnectionInfo (const DtHostNameAddress &host, int udpPort, int tcpPort, const MAKRti::DtInetAddr &bestEffortAddress, bool useRtiexec, const MAKRti::DtInetAddr &interfaceAddr, int forwarderPort) | |
| Constructor to set all values explicitly. | |
| virtual | ~DtRtiConnectionInfo () |
| Destructor. | |
| virtual bool | operator< (const DtRtiConnectionInfo &other) const |
| Less than operator. | |
| virtual bool | operator== (const DtRtiConnectionInfo &other) const |
| Equals operator. | |
| virtual bool | operator!= (const DtRtiConnectionInfo &other) const |
| Not equals operator. | |
| virtual DtRtiConnectionInfo & | operator= (const DtRtiConnectionInfo &other) |
| Assignment operator. | |
| virtual bool | isEquivalentHost (const DtRtiConnectionInfo &other) const |
| Determines if another connection has an equivalent host, based on the IP address and host name and network interface address. | |
| virtual bool | isEquivalentHostAllInterfaces (const DtRtiConnectionInfo &other) const |
| Determines if another connection has an equivalent host, based on the IP address and host name, assuming the host is bound on all interfaces. | |
| virtual bool | isLocalHost () const |
| Determines if the host for this connection is the local machine, based on the IP address and host name. | |
| virtual bool | conflictsWith (const DtRtiConnectionInfo &other, MAKRti::DtString &reason) const |
| Returns true if the connection conflicts with this connection and sets a description of the reason for the conflict. | |
| virtual MAKRti::DtString | defaultName () const |
| Default name for this connection. | |
| virtual MAKRti::DtString | description () const |
| Returns a text description of this connection. | |
| virtual const MAKRti::DtInetAddr & | reliableIp () const |
| Returns IP address for reliable communication. | |
| virtual void | setReliableIp (const MAKRti::DtInetAddr &ip) |
| Sets the reliable IP address. | |
| virtual const MAKRti::DtInetAddr & | bestEffortIp () const |
| Returns IP address for best effort communication. | |
| virtual void | setBestEffortIp (const MAKRti::DtInetAddr &ip) |
| Sets the best effort IP address. | |
| virtual int | udpPort () const |
| Returns UDP port. | |
| virtual void | setUdpPort (int port) |
| Sets the UDP port. | |
| virtual int | tcpPort () const |
| Returns TCP port. | |
| virtual void | setTcpPort (int port) |
| Sets the TCP port. | |
| virtual MAKRti::DtString | hostName () const |
| Returns host name. | |
| virtual void | setHostName (const MAKRti::DtString &host) |
| Sets the host name. | |
| virtual const MAKRti::DtInetAddr & | networkInterfaceAddr () const |
| Returns the local network interface address to use for this connection. | |
| virtual void | setNetworkInterfaceAddr (const MAKRti::DtInetAddr &addr) |
| Sets the local network interface address to use for this connection. | |
| virtual bool | useRtiexec () const |
| Returns whether this connection uses an rtiexec. | |
| virtual void | setUseRtiexec (bool useExec) |
| Sets whether this connection uses an rtiexec. | |
| virtual int | forwarderPort () const |
| Returns the forwarder port. | |
| virtual void | setForwarderPort (int port) |
| Sets the port. | |
| virtual bool | isValid () const |
| Returns true if this connection info passes a basic validity check. | |
Static Public Member Functions | |
| static const DtRtiConnectionInfo & | invalidConn () |
| Returns an invalid connection. | |
| static void | setLocalIpAddresses (bool reset=false) |
| Sets the list of recognized local IP addresses. | |
| static const std::set < MAKRti::DtInetAddr > & | localIpAddresses () |
| Returns list of local IP addresses. | |
| static bool | localSupportsIPv4 (bool reset=false) |
| Returns whether any of the local interfaces support IPv4. | |
| static bool | localSupportsIPv6 (bool reset=false) |
| Returns whether any of the local interfaces support IPv6. | |
| static MAKRti::DtString | constructConnName (const DtHostNameAddress &hostname, int udpPort, int tcpPort, const MAKRti::DtInetAddr &bestEffortAddress, bool useRtiexec, const MAKRti::DtInetAddr &interfaceAddr, int forwarderPort) |
| Constructs the default connection name using the given parameters. | |
| static MAKRti::DtString | constructConnDescription (const DtHostNameAddress &hostname, int udpPort, int tcpPort, const MAKRti::DtInetAddr &bestEffortAddress, bool useRtiexec, const MAKRti::DtInetAddr &interfaceAddr, int forwarderPort) |
| Constructs the connection description text using the given parameters. | |
| static const MAKRti::DtInetAddr & | defaultReliableIp () |
| Returns the default parameters. | |
| static const MAKRti::DtInetAddr & | defaultBestEffortIp () |
| Returns the default parameters. | |
| static int | defaultLightweightPort () |
| Returns the default parameters. | |
| static int | defaultRtiexecPort () |
| Returns the default parameters. | |
| static const MAKRti::DtString & | defaultHostName () |
| Returns the default parameters. | |
| static const MAKRti::DtInetAddr & | defaultNetworkInterfaceAddr () |
| Returns the default parameters. | |
| static int | defaultForwarderPort () |
| Returns the default parameters. | |
Static Protected Member Functions | |
| static std::set < MAKRti::DtInetAddr > & | theLocalIpAddresses () |
| Returns a reference to a static map of local IP addresses to netmasks. | |
Protected Attributes | |
| MAKRti::DtInetAddr | myBestEffortIp |
| IP address for best effort transport. | |
| int | myUdpPort |
| UDP port for the connection. | |
| int | myTcpPort |
| TCP port for the connection. | |
| DtHostNameAddress | myHostNameAddress |
| Host of the rtiexec or forwarder. | |
| MAKRti::DtInetAddr | myNetworkInterfaceAddr |
| Local network interface address to use for this connection. | |
| bool | myUseRtiexec |
| Whether or not an rtiexec should be used. | |
| int | myForwarderPort |
| The port used by the forwarder to connect to other forwarders. | |
Stores the information on an RTI connection known by the Assistant.
| DtRtiConnectionInfo::DtRtiConnectionInfo | ( | ) |
Constructor.
| DtRtiConnectionInfo::DtRtiConnectionInfo | ( | const MAKRti::DtString & | hostname, |
| int | udpPort, | ||
| int | tcpPort, | ||
| const MAKRti::DtInetAddr & | bestEffortAddress, | ||
| const MAKRti::DtInetAddr & | interfaceAddr, | ||
| int | forwarderPort | ||
| ) |
rtiexec connection constructors
| DtRtiConnectionInfo::DtRtiConnectionInfo | ( | const MAKRti::DtInetAddr & | reliableAddress, |
| int | udpPort, | ||
| int | tcpPort, | ||
| const MAKRti::DtInetAddr & | bestEffortAddress, | ||
| const MAKRti::DtInetAddr & | interfaceAddr, | ||
| int | forwarderPort | ||
| ) |
| DtRtiConnectionInfo::DtRtiConnectionInfo | ( | const MAKRti::DtInetAddr & | bestEffortAddress, |
| int | port, | ||
| const MAKRti::DtInetAddr & | interfaceAddr | ||
| ) |
Lightweight connection constructor.
| DtRtiConnectionInfo::DtRtiConnectionInfo | ( | const DtHostNameAddress & | host, |
| int | udpPort, | ||
| int | tcpPort, | ||
| const MAKRti::DtInetAddr & | bestEffortAddress, | ||
| bool | useRtiexec, | ||
| const MAKRti::DtInetAddr & | interfaceAddr, | ||
| int | forwarderPort | ||
| ) |
Constructor to set all values explicitly.
|
virtual |
Destructor.
|
virtual |
Returns IP address for best effort communication.
|
virtual |
Returns true if the connection conflicts with this connection and sets a description of the reason for the conflict.
|
static |
Constructs the connection description text using the given parameters.
|
static |
Constructs the default connection name using the given parameters.
|
static |
Returns the default parameters.
|
static |
Returns the default parameters.
|
static |
Returns the default parameters.
|
static |
Returns the default parameters.
|
virtual |
Default name for this connection.
|
static |
Returns the default parameters.
|
static |
Returns the default parameters.
|
static |
Returns the default parameters.
|
virtual |
Returns a text description of this connection.
|
virtual |
Returns the forwarder port.
|
virtual |
Returns host name.
|
static |
Returns an invalid connection.
|
virtual |
Determines if another connection has an equivalent host, based on the IP address and host name and network interface address.
|
virtual |
Determines if another connection has an equivalent host, based on the IP address and host name, assuming the host is bound on all interfaces.
|
virtual |
Determines if the host for this connection is the local machine, based on the IP address and host name.
|
virtual |
Returns true if this connection info passes a basic validity check.
|
inlinestatic |
Returns list of local IP addresses.
References theLocalIpAddresses().
|
static |
Returns whether any of the local interfaces support IPv4.
|
static |
Returns whether any of the local interfaces support IPv6.
|
virtual |
Returns the local network interface address to use for this connection.
|
virtual |
Not equals operator.
|
virtual |
Less than operator.
Comparisons are based on the following parameters in the order listed: 1) Lightweight connections are "less than" rtiexec connections 2) For lightweight connections: best effort IP and port 3) For rtiexec connections: host name or IP address (host name is used if available, though it is resolved to an IP and that is used as the actual value for comparison), port, best effort IP, forwarder port
|
virtual |
Assignment operator.
If the connections have equivalent hosts and the host name is already set, it will not be overwritten.
|
virtual |
Equals operator.
|
virtual |
Returns IP address for reliable communication.
|
virtual |
Sets the best effort IP address.
|
virtual |
Sets the port.
|
virtual |
Sets the host name.
|
static |
Sets the list of recognized local IP addresses.
If the set of local IP addresses has already been created it will not be reset unless the reset flag is true.
|
virtual |
Sets the local network interface address to use for this connection.
|
virtual |
Sets the reliable IP address.
|
virtual |
Sets the TCP port.
|
virtual |
Sets the UDP port.
|
virtual |
Sets whether this connection uses an rtiexec.
|
virtual |
Returns TCP port.
|
staticprotected |
Returns a reference to a static map of local IP addresses to netmasks.
This is a shallow wrapper function which is provided to guarantee the std::map is initialized. Please note that this class is only used by the assistant, which is single threaded. If this class is ever used by a multithreaded application, this static member should be mutex protected.
Referenced by localIpAddresses().
|
virtual |
Returns UDP port.
|
virtual |
Returns whether this connection uses an rtiexec.
|
protected |
IP address for best effort transport.
|
protected |
The port used by the forwarder to connect to other forwarders.
|
protected |
Host of the rtiexec or forwarder.
|
protected |
Local network interface address to use for this connection.
|
protected |
TCP port for the connection.
|
protected |
UDP port for the connection.
|
protected |
Whether or not an rtiexec should be used.