diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-11 15:06:18 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-11 15:06:18 +0000 |
commit | ccfec5b680a6af3f6a03530ee6c5fe2d6a3309ec (patch) | |
tree | 97be145d3c87031a2bb2bf27aee430c5eb6f4b22 /TAO/orbsvcs/tests/Event/Basic/BCast.cpp | |
parent | 6fe4a5ae09087ff6949c40ef87878ea1938ed8f6 (diff) | |
download | ATCD-ccfec5b680a6af3f6a03530ee6c5fe2d6a3309ec.tar.gz |
ChangeLogTag:Wed Aug 11 10:04:57 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/orbsvcs/tests/Event/Basic/BCast.cpp')
-rw-r--r-- | TAO/orbsvcs/tests/Event/Basic/BCast.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/TAO/orbsvcs/tests/Event/Basic/BCast.cpp b/TAO/orbsvcs/tests/Event/Basic/BCast.cpp index 12562118f7e..30cc7a8c8bd 100644 --- a/TAO/orbsvcs/tests/Event/Basic/BCast.cpp +++ b/TAO/orbsvcs/tests/Event/Basic/BCast.cpp @@ -19,7 +19,8 @@ main (int argc, char *argv []) // **************************************************************** EC_BCast::EC_BCast (void) - : bcast_port_ (12345) + : bcast_address_ ("255.255.255.255"), + bcast_port_ (12345) { } @@ -41,6 +42,12 @@ EC_BCast::parse_args (int& argc, char* argv[]) this->bcast_port_ = ACE_OS::atoi (arg_shifter.get_current ()); } + else if (ACE_OS::strcmp (arg, "-address") == 0) + { + arg_shifter.consume_arg (); + this->bcast_address_ = arg_shifter.get_current (); + } + arg_shifter.ignore_arg (); } @@ -70,7 +77,7 @@ EC_BCast::execute_test (CORBA::Environment& ACE_TRY_ENV) TAO_ECG_UDP_Sender sender; TAO_ECG_UDP_Out_Endpoint endpoint; - ACE_INET_Addr udp_addr (this->bcast_port_, "128.252.165.255"); + ACE_INET_Addr udp_addr (this->bcast_port_, this->bcast_address_); Simple_Address_Server address_server_impl (udp_addr); RtecUDPAdmin::AddrServer_var address_server = |