diff options
author | dengg <dengg@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-10-26 04:20:52 +0000 |
---|---|---|
committer | dengg <dengg@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-10-26 04:20:52 +0000 |
commit | d14694751aed983f826a6a32b9124f4d9f01069f (patch) | |
tree | 877dd73d625ef9face0f3989a5bd7b751e46891c /TAO/orbsvcs/examples/RtEC/MCast/Supplier.cpp | |
parent | 8193d7d6e3178127a572a8850a52e328192b3f46 (diff) | |
download | ATCD-d14694751aed983f826a6a32b9124f4d9f01069f.tar.gz |
Modified to send and receive valuetype data.EC_integration_03
Diffstat (limited to 'TAO/orbsvcs/examples/RtEC/MCast/Supplier.cpp')
-rw-r--r-- | TAO/orbsvcs/examples/RtEC/MCast/Supplier.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/TAO/orbsvcs/examples/RtEC/MCast/Supplier.cpp b/TAO/orbsvcs/examples/RtEC/MCast/Supplier.cpp index f835dcb6daa..b077fdf1cbd 100644 --- a/TAO/orbsvcs/examples/RtEC/MCast/Supplier.cpp +++ b/TAO/orbsvcs/examples/RtEC/MCast/Supplier.cpp @@ -4,6 +4,8 @@ #include "orbsvcs/RtecEventChannelAdminS.h" #include "orbsvcs/Event_Service_Constants.h" +#include "TestC.h" + ACE_RCSID (EC_Examples, Supplier, "$Id$") @@ -77,6 +79,11 @@ Supplier::perform_push (ACE_ENV_SINGLE_ARG_DECL) // Avoid loops throught the event channel federations event[0].header.ttl = 1; + OBV_ValueTypeData * test_data; + ACE_NEW (test_data, OBV_ValueTypeData ()); + test_data->data ("This is a test message"); + event[0].data.any_value <<= test_data; + this->proxy_->push (event ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; } |