#include <TcpLoader.h>
Public Member Functions | |
TcpLoader () | |
virtual | ~TcpLoader () |
virtual int | init (int argc, ACE_TCHAR *argv[]) |
Initialize the loader hooks. |
Definition at line 24 of file TcpLoader.h.
OpenDDS::DCPS::TcpLoader::TcpLoader | ( | ) |
Definition at line 26 of file TcpLoader.cpp.
References DBG_ENTRY_LVL.
00027 { 00028 DBG_ENTRY_LVL("TcpLoader", "TcpLoader", 6); 00029 }
OpenDDS::DCPS::TcpLoader::~TcpLoader | ( | ) | [virtual] |
Definition at line 31 of file TcpLoader.cpp.
References DBG_ENTRY_LVL.
00032 { 00033 DBG_ENTRY_LVL("TcpLoader", "~TcpLoader", 6); 00034 }
int OpenDDS::DCPS::TcpLoader::init | ( | int | argc, | |
ACE_TCHAR * | argv[] | |||
) | [virtual] |
Initialize the loader hooks.
Definition at line 47 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(), TCP_NAME, and TheTransportRegistry.
00048 { 00049 DBG_ENTRY_LVL("TcpLoader", "init", 6); 00050 00051 static bool initialized = false; 00052 00053 // Only allow initialization once. 00054 if (initialized) 00055 return 0; 00056 00057 TransportRegistry* registry = TheTransportRegistry; 00058 registry->register_type(new TcpType); 00059 TransportInst_rch default_inst = 00060 registry->create_inst(TransportRegistry::DEFAULT_INST_PREFIX + 00061 std::string("0500_TCP"), TCP_NAME); 00062 registry->get_config(TransportRegistry::DEFAULT_CONFIG_NAME) 00063 ->sorted_insert(default_inst); 00064 00065 initialized = true; 00066 return 0; 00067 }