OpenDDS::DCPS::UdpLoader Class Reference

#include <UdpLoader.h>

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

List of all members.

Public Member Functions

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

Detailed Description

Definition at line 23 of file UdpLoader.h.


Member Function Documentation

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

Reimplemented from ACE_Shared_Object.

Definition at line 34 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(), and TheTransportRegistry.

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

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