#include <TransportConfig.h>
Inheritance diagram for OpenDDS::DCPS::TransportConfig:
Public Member Functions | |
OPENDDS_STRING | name () const |
typedef | OPENDDS_VECTOR (TransportInst_rch) InstancesType |
void | sorted_insert (const TransportInst_rch &inst) |
void | populate_locators (OpenDDS::DCPS::TransportLocatorSeq &trans_info) const |
Public Attributes | |
InstancesType | instances_ |
bool | swap_bytes_ |
unsigned long | passive_connect_duration_ |
Static Public Attributes | |
static const unsigned long | DEFAULT_PASSIVE_CONNECT_DURATION = 60000 |
Private Member Functions | |
TransportConfig (const OPENDDS_STRING &name) | |
~TransportConfig () | |
Private Attributes | |
const OPENDDS_STRING | name_ |
Friends | |
class | TransportRegistry |
Definition at line 27 of file TransportConfig.h.
OpenDDS::DCPS::TransportConfig::TransportConfig | ( | const OPENDDS_STRING & | name | ) | [explicit, private] |
Definition at line 19 of file TransportConfig.cpp.
00020 : swap_bytes_(false) 00021 , passive_connect_duration_(DEFAULT_PASSIVE_CONNECT_DURATION) 00022 , name_(name) 00023 {}
OpenDDS::DCPS::TransportConfig::~TransportConfig | ( | ) | [private] |
OPENDDS_STRING OpenDDS::DCPS::TransportConfig::name | ( | ) | const [inline] |
Definition at line 32 of file TransportConfig.h.
Referenced by sorted_insert().
00032 { return name_; }
typedef OpenDDS::DCPS::TransportConfig::OPENDDS_VECTOR | ( | TransportInst_rch | ) |
void OpenDDS::DCPS::TransportConfig::populate_locators | ( | OpenDDS::DCPS::TransportLocatorSeq & | trans_info | ) | const |
Definition at line 40 of file TransportConfig.cpp.
References instances_.
00041 { 00042 for (InstancesType::const_iterator pos = instances_.begin(), limit = instances_.end(); 00043 pos != limit; 00044 ++pos) { 00045 const CORBA::ULong idx = trans_info.length(); 00046 trans_info.length(idx + 1); 00047 if ((*pos)->populate_locator(trans_info[idx]) == 0) { 00048 trans_info.length(idx); 00049 } 00050 } 00051 }
void OpenDDS::DCPS::TransportConfig::sorted_insert | ( | const TransportInst_rch & | inst | ) |
Insert the TransportInst in sorted order (by name) in the instances_ list. Use when the names of the TransportInst objects are specifically assigned to have the sorted order make sense.
Definition at line 29 of file TransportConfig.cpp.
References instances_, name(), and OPENDDS_STRING.
00030 { 00031 const OPENDDS_STRING name = inst->name(); 00032 InstancesType::iterator it = instances_.begin(); 00033 while (it != instances_.end() && (*it)->name() < name) { 00034 ++it; 00035 } 00036 instances_.insert(it, inst); 00037 }
friend class TransportRegistry [friend] |
Definition at line 52 of file TransportConfig.h.
const unsigned long OpenDDS::DCPS::TransportConfig::DEFAULT_PASSIVE_CONNECT_DURATION = 60000 [static] |
Definition at line 30 of file TransportConfig.h.
Referenced by OpenDDS::DCPS::TransportClient::enable_transport_using_config().
InstancesType OpenDDS::DCPS::TransportConfig::instances_ |
Definition at line 35 of file TransportConfig.h.
Referenced by populate_locators(), and sorted_insert().
const OPENDDS_STRING OpenDDS::DCPS::TransportConfig::name_ [private] |
Definition at line 56 of file TransportConfig.h.
The time period in milliseconds for the acceptor side of a connection to wait for the connection. The default is 60 seconds
Definition at line 42 of file TransportConfig.h.
Definition at line 37 of file TransportConfig.h.