#include <ShmemLoader.h>
Public Member Functions | |
virtual int | init (int argc, ACE_TCHAR *argv[]) |
Definition at line 23 of file ShmemLoader.h.
int OpenDDS::DCPS::ShmemLoader::init | ( | int | argc, | |
ACE_TCHAR * | argv[] | |||
) | [virtual] |
Reimplemented from ACE_Shared_Object.
Definition at line 34 of file ShmemLoader.cpp.
References 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<ShmemType>()); 00042 00043 //FUTURE: when we're ready, add a ShmemInst to the default config, like so: 00044 /* 00045 TransportInst_rch default_inst = 00046 registry->create_inst(TransportRegistry::DEFAULT_INST_PREFIX + "0200_SHMEM", 00047 UDP_NAME); 00048 registry->get_config(TransportRegistry::DEFAULT_CONFIG_NAME) 00049 ->sorted_insert(default_inst); 00050 */ 00051 initialized = true; 00052 00053 return 0; 00054 }