OpenDDS::DCPS::TcpLoader Class Reference

#include <TcpLoader.h>

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

List of all members.

Public Member Functions

 TcpLoader ()
virtual ~TcpLoader ()
virtual int init (int argc, ACE_TCHAR *argv[])
 Initialize the loader hooks.

Detailed Description

Definition at line 28 of file TcpLoader.h.


Constructor & Destructor Documentation

OpenDDS::DCPS::TcpLoader::TcpLoader (  ) 

Definition at line 28 of file TcpLoader.cpp.

References DBG_ENTRY_LVL.

00029 {
00030   DBG_ENTRY_LVL("TcpLoader", "TcpLoader", 6);
00031 }

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

Definition at line 33 of file TcpLoader.cpp.

References DBG_ENTRY_LVL.

00034 {
00035   DBG_ENTRY_LVL("TcpLoader", "~TcpLoader", 6);
00036 }


Member Function Documentation

int OpenDDS::DCPS::TcpLoader::init ( int  argc,
ACE_TCHAR argv[] 
) [virtual]

Initialize the loader hooks.

Reimplemented from ACE_Shared_Object.

Definition at line 49 of file TcpLoader.cpp.

References OpenDDS::DCPS::TransportRegistry::create_inst(), DBG_ENTRY_LVL, OpenDDS::DCPS::TransportRegistry::DEFAULT_CONFIG_NAME, OpenDDS::DCPS::TransportRegistry::DEFAULT_INST_PREFIX, OpenDDS::DCPS::TransportRegistry::get_config(), OpenDDS::DCPS::TransportRegistry::register_type(), and TheTransportRegistry.

00050 {
00051   DBG_ENTRY_LVL("TcpLoader", "init", 6);
00052 
00053   static bool initialized = false;
00054 
00055   // Only allow initialization once.
00056   if (initialized)
00057     return 0;
00058 
00059   TransportRegistry* registry = TheTransportRegistry;
00060   registry->register_type(make_rch<TcpType>());
00061   TransportInst_rch default_inst =
00062     registry->create_inst(TransportRegistry::DEFAULT_INST_PREFIX +
00063                           std::string("0500_TCP"), TCP_NAME);
00064   registry->get_config(TransportRegistry::DEFAULT_CONFIG_NAME)
00065     ->sorted_insert(default_inst);
00066 
00067   initialized = true;
00068   return 0;
00069 }

Here is the call graph for this function:


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