OpenDDS::DCPS::UdpLoader Class Reference

#include <UdpLoader.h>

List of all members.

Public Member Functions

virtual int init (int argc, ACE_TCHAR *argv[])


Detailed Description

Definition at line 20 of file UdpLoader.h.


Member Function Documentation

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

Definition at line 32 of file UdpLoader.cpp.

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

00033 {
00034   static bool initialized(false);
00035 
00036   if (initialized) return 0;  // already initialized
00037 
00038   TransportRegistry* registry = TheTransportRegistry;
00039   registry->register_type(new UdpType);
00040   TransportInst_rch default_inst =
00041     registry->create_inst(TransportRegistry::DEFAULT_INST_PREFIX +
00042                           std::string("0300_UDP"), UDP_NAME);
00043   registry->get_config(TransportRegistry::DEFAULT_CONFIG_NAME)
00044     ->sorted_insert(default_inst);
00045 
00046   initialized = true;
00047 
00048   return 0;
00049 }


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