summaryrefslogtreecommitdiff
path: root/orbsvcs/examples/RtEC/MCast/MCast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'orbsvcs/examples/RtEC/MCast/MCast.cpp')
-rw-r--r--orbsvcs/examples/RtEC/MCast/MCast.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/orbsvcs/examples/RtEC/MCast/MCast.cpp b/orbsvcs/examples/RtEC/MCast/MCast.cpp
index 9589df228da..90e95851b3e 100644
--- a/orbsvcs/examples/RtEC/MCast/MCast.cpp
+++ b/orbsvcs/examples/RtEC/MCast/MCast.cpp
@@ -1,6 +1,5 @@
// $Id$
-
#include "Consumer.h"
#include "Supplier.h"
#include "AddrServer.h"
@@ -15,10 +14,6 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_unistd.h"
-ACE_RCSID (EC_Examples,
- MCast,
- "$Id$")
-
const ACE_TCHAR *udp_mcast_address =
ACE_TEXT (ACE_DEFAULT_MULTICAST_ADDR) ACE_TEXT(":10001");
@@ -146,7 +141,8 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
}
// Now we setup the sender:
- TAO_EC_Servant_Var<TAO_ECG_UDP_Sender> sender = TAO_ECG_UDP_Sender::create();
+ PortableServer::Servant_var<TAO_ECG_UDP_Sender> sender =
+ TAO_ECG_UDP_Sender::create();
sender->init (event_channel.in (),
address_server.in (),
endpoint);
@@ -166,7 +162,8 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
sender->connect (sub);
// To receive events we need to setup an event handler:
- TAO_EC_Servant_Var<TAO_ECG_UDP_Receiver> receiver = TAO_ECG_UDP_Receiver::create();
+ PortableServer::Servant_var<TAO_ECG_UDP_Receiver> receiver =
+ TAO_ECG_UDP_Receiver::create();
TAO_ECG_Mcast_EH mcast_eh (&(*receiver));
// The event handler uses the ORB reactor to wait for multicast
@@ -336,7 +333,7 @@ int parse_args (int argc, ACE_TCHAR *argv[])
argv [0]),
-1);
}
- // Indicates sucessful parsing of the command line
+ // Indicates successful parsing of the command line
return 0;
}