#include <TransportConfig.h>
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 |
template<typename T , typename U > | |
RcHandle< T > | OpenDDS::DCPS::make_rch (U const &) |
Definition at line 28 of file TransportConfig.h.
OpenDDS::DCPS::TransportConfig::TransportConfig | ( | const OPENDDS_STRING & | name | ) | [explicit, private] |
Definition at line 17 of file TransportConfig.cpp.
00018 : swap_bytes_(false) 00019 , passive_connect_duration_(DEFAULT_PASSIVE_CONNECT_DURATION) 00020 , name_(name) 00021 {}
OpenDDS::DCPS::TransportConfig::~TransportConfig | ( | ) | [private] |
Definition at line 23 of file TransportConfig.cpp.
OPENDDS_STRING OpenDDS::DCPS::TransportConfig::name | ( | void | ) | const [inline] |
Definition at line 33 of file TransportConfig.h.
Referenced by sorted_insert().
00033 { 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 38 of file TransportConfig.cpp.
References instances_.
00039 { 00040 for (InstancesType::const_iterator pos = instances_.begin(), limit = instances_.end(); 00041 pos != limit; 00042 ++pos) { 00043 const CORBA::ULong idx = trans_info.length(); 00044 trans_info.length(idx + 1); 00045 if ((*pos)->populate_locator(trans_info[idx]) == 0) { 00046 trans_info.length(idx); 00047 } 00048 } 00049 }
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 27 of file TransportConfig.cpp.
References instances_, name(), and OPENDDS_STRING.
00028 { 00029 const OPENDDS_STRING name = inst->name(); 00030 InstancesType::iterator it = instances_.begin(); 00031 while (it != instances_.end() && (*it)->name() < name) { 00032 ++it; 00033 } 00034 instances_.insert(it, inst); 00035 }
RcHandle<T> OpenDDS::DCPS::make_rch | ( | U const & | ) | [friend] |
friend class TransportRegistry [friend] |
Definition at line 53 of file TransportConfig.h.
const unsigned long OpenDDS::DCPS::TransportConfig::DEFAULT_PASSIVE_CONNECT_DURATION = 60000 [static] |
Definition at line 31 of file TransportConfig.h.
Referenced by OpenDDS::DCPS::TransportClient::enable_transport_using_config().
InstancesType OpenDDS::DCPS::TransportConfig::instances_ |
Definition at line 36 of file TransportConfig.h.
Referenced by populate_locators(), and sorted_insert().
const OPENDDS_STRING OpenDDS::DCPS::TransportConfig::name_ [private] |
Definition at line 59 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 43 of file TransportConfig.h.
Definition at line 38 of file TransportConfig.h.