diff options
-rw-r--r-- | TAO/orbsvcs/tests/Event/UDP/receiver.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/Event/UDP/receiver.cpp b/TAO/orbsvcs/tests/Event/UDP/receiver.cpp index 8024ef6f70b..3a6906100b6 100644 --- a/TAO/orbsvcs/tests/Event/UDP/receiver.cpp +++ b/TAO/orbsvcs/tests/Event/UDP/receiver.cpp @@ -12,6 +12,7 @@ #include "tao/ORB_Core.h" #include "ace/Get_Opt.h" #include "ace/OS_NS_unistd.h" +#include "TestC.h" ACE_RCSID (EC_Examples, MCast, @@ -61,6 +62,20 @@ main (int argc, char* argv[]) return 1; } + if (valuetype) + { + ValueTypeData_init *vb_factory = 0; + ACE_NEW_RETURN (vb_factory, + ValueTypeData_init, + 1); // supplied by mapping + + orb->register_value_factory (vb_factory->tao_repository_id (), + vb_factory + ACE_ENV_ARG_PARAMETER); + ACE_TRY_CHECK; + vb_factory->_remove_ref (); // release ownership + } + // This is the standard code to get access to the POA and // activate it. // The POA starts in the holding state, if it is not activated |