#include <SimpleTcpConfiguration.h>
Inheritance diagram for OpenDDS::DCPS::SimpleTcpConfiguration:


Public Member Functions | |
| SimpleTcpConfiguration () | |
| virtual | ~SimpleTcpConfiguration () |
| virtual int | load (const TransportIdType &id, ACE_Configuration_Heap &cf) |
Public Attributes | |
| ACE_INET_Addr | local_address_ |
| std::string | local_address_str_ |
| bool | enable_nagle_algorithm_ |
| int | conn_retry_initial_delay_ |
| double | conn_retry_backoff_multiplier_ |
| int | conn_retry_attempts_ |
| int | max_output_pause_period_ |
| int | passive_reconnect_duration_ |
| unsigned long | passive_connect_duration_ |
| ACE_INLINE OpenDDS::DCPS::SimpleTcpConfiguration::SimpleTcpConfiguration | ( | ) |
| OpenDDS::DCPS::SimpleTcpConfiguration::~SimpleTcpConfiguration | ( | ) | [virtual] |
| int OpenDDS::DCPS::SimpleTcpConfiguration::load | ( | const TransportIdType & | id, | |
| ACE_Configuration_Heap & | cf | |||
| ) | [virtual] |
Overwrite the default configurations with the configuration for the give transport_id in ACE_Configuration_Heap object.
Reimplemented from OpenDDS::DCPS::TransportConfiguration.
Number of attemps to reconnect before giving up and calling on_publication_lost() and on_subscription_lost() callbacks. The default is 3.
The backoff multiplier for reconnection strategy. The third and so on reconnect will be this value * the previous delay. Hence with conn_retry_initial_delay=500 and conn_retry_backoff_multiplier=1.5 the second reconnect attempt will be at 0.5 seconds after first retry connect fails; the third attempt will be 0.75 seconds after the second retry connect fails; the fourth attempt will be 1.125 seconds after the third retry connect fails. The default value is 2.0.
The initial retry delay in milliseconds. The first connection retry will be when the loss of connection is detected. The second try will be after this delay. The default is 500 miliseconds.
| ACE_INET_Addr OpenDDS::DCPS::SimpleTcpConfiguration::local_address_ |
Describes the local endpoint to be used to accept passive connections.
The address string used to provide to DCPSInfoRepo. This string is either from configuration file or default to hostname:port. The hostname is fully qualified hostname and the port is randomly picked by os.
Maximum period (in milliseconds) of not being able to send queued messages. If there are samples queued and no output for longer than this period then the connection will be closed and on_*_lost() callbacks will be called. If the value is zero, the default, then this check will not be made.
The time period in milliseconds for the acceptor side of a connection to wait for the connection. The default is 0 (wait forever) This currently doesn't apply to passive reconnections.
The time period in milliseconds for the acceptor side of a connection to wait for the connection to be reconnected. If not reconnected within this period then on_publication_lost() and on_subscription_lost() callbacks will be called. The default is 2 seconds (2000 millseconds).
1.4.7