diff options
Diffstat (limited to 'cpp/test/Ice/hold/TestI.cpp')
-rw-r--r-- | cpp/test/Ice/hold/TestI.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cpp/test/Ice/hold/TestI.cpp b/cpp/test/Ice/hold/TestI.cpp new file mode 100644 index 00000000000..00d3de083d9 --- /dev/null +++ b/cpp/test/Ice/hold/TestI.cpp @@ -0,0 +1,24 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2005 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 <Ice/Ice.h> +#include <TestI.h> + +void +HoldI::putOnHold(Ice::Int seconds, const Ice::Current& current) +{ + current.adapter->hold(); + current.adapter->activate(); +} + +void +HoldI::shutdown(const Ice::Current& current) +{ + current.adapter->getCommunicator()->shutdown(); +} |