OpenDDS::DCPS::TransportConfig Class Reference

#include <TransportConfig.h>

Inheritance diagram for OpenDDS::DCPS::TransportConfig:

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

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 27 of file TransportConfig.h.


Constructor & Destructor Documentation

OpenDDS::DCPS::TransportConfig::TransportConfig ( const OPENDDS_STRING &  name  )  [explicit, private]

Definition at line 19 of file TransportConfig.cpp.

OpenDDS::DCPS::TransportConfig::~TransportConfig (  )  [private]

Definition at line 25 of file TransportConfig.cpp.

00026 {}


Member Function Documentation

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 }


Friends And Related Function Documentation

friend class TransportRegistry [friend]

Definition at line 52 of file TransportConfig.h.


Member Data Documentation

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.

unsigned long OpenDDS::DCPS::TransportConfig::passive_connect_duration_

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.

bool OpenDDS::DCPS::TransportConfig::swap_bytes_

Definition at line 37 of file TransportConfig.h.


The documentation for this class was generated from the following files:
Generated on Fri Feb 12 20:06:30 2016 for OpenDDS by  doxygen 1.4.7