summaryrefslogtreecommitdiff
path: root/examples/Reactor
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1996-12-10 08:49:56 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1996-12-10 08:49:56 +0000
commit64d036b51612261ffa53bbdba38ff8e6e99fc016 (patch)
treeff947ccd272b645b872902a961c0907b7f974469 /examples/Reactor
parent7db29418e44bdce4e3df96493b852118cdd82a4a (diff)
downloadATCD-64d036b51612261ffa53bbdba38ff8e6e99fc016.tar.gz
eon
Diffstat (limited to 'examples/Reactor')
-rw-r--r--examples/Reactor/Ntalker/ntalker.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/Reactor/Ntalker/ntalker.cpp b/examples/Reactor/Ntalker/ntalker.cpp
index 5c0bc4f395d..3234c201048 100644
--- a/examples/Reactor/Ntalker/ntalker.cpp
+++ b/examples/Reactor/Ntalker/ntalker.cpp
@@ -8,6 +8,7 @@
#include "ace/INET_Addr.h"
#include "ace/SOCK_Dgram_Mcast.h"
#include "ace/Reactor.h"
+#include "ace/Get_Opt.h"
#if defined (ACE_HAS_IP_MULTICAST)
// network interface to subscribe to
@@ -132,13 +133,15 @@ Handle_Events::Handle_Events (u_short udp_port,
static void
parse_args (int argc, char *argv[])
{
+ ACE_Get_Opt get_opt (argc, argv, "i:u");
+
int c;
- while ((c = ACE_OS::getopt (argc, argv, "i:u")) != -1)
+ while ((c = get_opt ()) != -1)
switch (c)
{
case 'i':
- INTERFACE = optarg;
+ INTERFACE = get_opt.optarg;
break;
case 'u':
// Usage fallthrough.