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
template<typename T , typename U >
RcHandle< T > OpenDDS::DCPS::make_rch (U const &)

Detailed Description

Definition at line 28 of file TransportConfig.h.


Constructor & Destructor Documentation

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

Definition at line 17 of file TransportConfig.cpp.

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

Definition at line 23 of file TransportConfig.cpp.

00024 {}


Member Function Documentation

OPENDDS_STRING OpenDDS::DCPS::TransportConfig::name ( void   )  const [inline]

Definition at line 33 of file TransportConfig.h.

Referenced by sorted_insert().

00033 { return name_; }

Here is the caller graph for this function:

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 }

Here is the call graph for this function:


Friends And Related Function Documentation

template<typename T , typename U >
RcHandle<T> OpenDDS::DCPS::make_rch ( U const &   )  [friend]
friend class TransportRegistry [friend]

Definition at line 53 of file TransportConfig.h.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1