diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-10-23 14:42:59 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-10-23 14:42:59 -0230 |
commit | 845b03ddfa20fef3b57818086b6ec7266d8db147 (patch) | |
tree | f082980f7fa6c50006f24bedf29423b2bbf9739b /cpp/test/Ice/udp/TestI.cpp | |
parent | Fixed locator implementation to not serialize anymore locator request for non... (diff) | |
download | ice-845b03ddfa20fef3b57818086b6ec7266d8db147.tar.bz2 ice-845b03ddfa20fef3b57818086b6ec7266d8db147.tar.xz ice-845b03ddfa20fef3b57818086b6ec7266d8db147.zip |
Bug 3164 - add udp test
Diffstat (limited to 'cpp/test/Ice/udp/TestI.cpp')
-rw-r--r-- | cpp/test/Ice/udp/TestI.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/cpp/test/Ice/udp/TestI.cpp b/cpp/test/Ice/udp/TestI.cpp new file mode 100644 index 00000000000..f222dbe2e01 --- /dev/null +++ b/cpp/test/Ice/udp/TestI.cpp @@ -0,0 +1,34 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include <IceUtil/IceUtil.h> +#include <Ice/Ice.h> +#include <TestI.h> + +using namespace std; +using namespace Ice; + +void +TestIntfI::ping(const Test::PingReplyPrx& reply, const Current& current) +{ + try + { + reply->reply(); + } + catch(const Ice::Exception ex) + { + assert(false); + } +} + +void +TestIntfI::shutdown(const Current& current) +{ + current.adapter->getCommunicator()->shutdown(); +} |