diff options
author | mk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-04-21 21:08:37 +0000 |
---|---|---|
committer | mk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-04-21 21:08:37 +0000 |
commit | 95499dedb111ee47f94b81e85d0cb08c59fbac42 (patch) | |
tree | 5a0349bfe3550c897fdb28acac554dcd694942f2 /TAO/examples/PluggableUDP | |
parent | 0b95d1d53573e69ccb8997ef4b33139efc893278 (diff) | |
download | ATCD-95499dedb111ee47f94b81e85d0cb08c59fbac42.tar.gz |
ChangeLogTag: Sat Apr 21 16:08:00 2001 Michael Kircher <Michael.Kircher@mchp.siemens.de>
Diffstat (limited to 'TAO/examples/PluggableUDP')
-rw-r--r-- | TAO/examples/PluggableUDP/tests/Performance/UDP_PerformanceClient.cpp | 19 | ||||
-rw-r--r-- | TAO/examples/PluggableUDP/tests/Performance/UDP_i.cpp | 7 |
2 files changed, 15 insertions, 11 deletions
diff --git a/TAO/examples/PluggableUDP/tests/Performance/UDP_PerformanceClient.cpp b/TAO/examples/PluggableUDP/tests/Performance/UDP_PerformanceClient.cpp index b6ea0d987ff..f5ecdec245f 100644 --- a/TAO/examples/PluggableUDP/tests/Performance/UDP_PerformanceClient.cpp +++ b/TAO/examples/PluggableUDP/tests/Performance/UDP_PerformanceClient.cpp @@ -130,27 +130,30 @@ UDP_PerformanceClient::svc () "\nError: No callbacks received!\n\n")); } - if (delta_micro_seconds <= final_delta_micro_seconds_ - && current_wrong_messages == 0) + { ACE_Time_Value tv; timer.elapsed_time (tv); - ACE_UINT64 calls_per_second = - (1000 * burst_messages_) / tv.msec (); + ACE_UINT32 calls_per_second = (1000L * burst_messages_) / tv.msec (); ACE_DEBUG ((LM_DEBUG, - "\n Time needed %u s %u us (%d ms) for %d messages" - "\n Performance = %u asynch calls per second\n\n", + "\n Time needed %d s %d us (%d ms) for %d messages" + "\n Performance = %d asynch calls per second\n\n", tv.sec (), tv.usec (), tv.msec (), burst_messages_, calls_per_second)); + } + + if (delta_micro_seconds <= final_delta_micro_seconds_ + && current_wrong_messages == 0) + { break; } - } - + } + // shut down remote ORB udp_->shutdown (ACE_TRY_ENV); ACE_TRY_CHECK; diff --git a/TAO/examples/PluggableUDP/tests/Performance/UDP_i.cpp b/TAO/examples/PluggableUDP/tests/Performance/UDP_i.cpp index e61cac8b75e..9071fa68605 100644 --- a/TAO/examples/PluggableUDP/tests/Performance/UDP_i.cpp +++ b/TAO/examples/PluggableUDP/tests/Performance/UDP_i.cpp @@ -33,12 +33,13 @@ UDP_i::setResponseHandler (UDP_ptr udpHandler, CORBA::Environment &) ACE_THROW_SPEC ((CORBA::SystemException)) { + if (CORBA::is_nil (udpHandler)) + ACE_DEBUG ((LM_DEBUG, + "response handler is nil\n")); + this->responseHandler_ = UDP::_duplicate (udpHandler); - ACE_DEBUG ((LM_DEBUG, - "UDP_i::svc: Received exception\n")); } - void UDP_i::invoke (const char * client_name, CORBA::Long request_id, |