OpenDDS::DCPS::SimpleTcpConfiguration Class Reference

#include <SimpleTcpConfiguration.h>

Inheritance diagram for OpenDDS::DCPS::SimpleTcpConfiguration:

Inheritance graph
[legend]
Collaboration diagram for OpenDDS::DCPS::SimpleTcpConfiguration:

Collaboration graph
[legend]
List of all members.

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_

Constructor & Destructor Documentation

ACE_INLINE OpenDDS::DCPS::SimpleTcpConfiguration::SimpleTcpConfiguration (  ) 

OpenDDS::DCPS::SimpleTcpConfiguration::~SimpleTcpConfiguration (  )  [virtual]


Member Function Documentation

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.


Member Data Documentation

int OpenDDS::DCPS::SimpleTcpConfiguration::conn_retry_attempts_

Number of attemps to reconnect before giving up and calling on_publication_lost() and on_subscription_lost() callbacks. The default is 3.

double OpenDDS::DCPS::SimpleTcpConfiguration::conn_retry_backoff_multiplier_

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.

int OpenDDS::DCPS::SimpleTcpConfiguration::conn_retry_initial_delay_

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.

bool OpenDDS::DCPS::SimpleTcpConfiguration::enable_nagle_algorithm_

ACE_INET_Addr OpenDDS::DCPS::SimpleTcpConfiguration::local_address_

Describes the local endpoint to be used to accept passive connections.

std::string OpenDDS::DCPS::SimpleTcpConfiguration::local_address_str_

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.

int OpenDDS::DCPS::SimpleTcpConfiguration::max_output_pause_period_

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.

unsigned long OpenDDS::DCPS::SimpleTcpConfiguration::passive_connect_duration_

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.

int OpenDDS::DCPS::SimpleTcpConfiguration::passive_reconnect_duration_

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).


The documentation for this class was generated from the following files:
Generated on Fri Nov 7 09:37:48 2008 for OpenDDS by  doxygen 1.4.7