diff options
Diffstat (limited to 'protobuf/demo/cpp/HelloI.cpp')
-rw-r--r-- | protobuf/demo/cpp/HelloI.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/protobuf/demo/cpp/HelloI.cpp b/protobuf/demo/cpp/HelloI.cpp new file mode 100644 index 00000000000..dfd9864c99f --- /dev/null +++ b/protobuf/demo/cpp/HelloI.cpp @@ -0,0 +1,28 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved. +// +// This copy of Ice Protobuf is licensed to you under the terms +// described in the ICE_PROTOBUF_LICENSE file included in this +// distribution. +// +// ********************************************************************** + +#include <IceUtil/IceUtil.h> +#include <Ice/Ice.h> +#include <HelloI.h> + +using namespace std; + +void +HelloI::sayHello(const tutorial::Person& p, const Ice::Current&) +{ + cout << "Hello World from " << p.DebugString() << endl; +} + +void +HelloI::shutdown(const Ice::Current& c) +{ + cout << "Shutting down..." << endl; + c.adapter->getCommunicator()->shutdown(); +} |