summaryrefslogtreecommitdiff
path: root/cpp/demo/IcePack/simple/HelloI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/IcePack/simple/HelloI.cpp')
-rw-r--r--cpp/demo/IcePack/simple/HelloI.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/cpp/demo/IcePack/simple/HelloI.cpp b/cpp/demo/IcePack/simple/HelloI.cpp
new file mode 100644
index 00000000000..880603c5f46
--- /dev/null
+++ b/cpp/demo/IcePack/simple/HelloI.cpp
@@ -0,0 +1,31 @@
+// **********************************************************************
+//
+// Copyright (c) 2003
+// ZeroC, Inc.
+// Billerica, MA, USA
+//
+// All Rights Reserved.
+//
+// Ice is free software; you can redistribute it and/or modify it under
+// the terms of the GNU General Public License version 2 as published by
+// the Free Software Foundation.
+//
+// **********************************************************************
+
+#include <Ice/Ice.h>
+#include <HelloI.h>
+
+using namespace std;
+
+void
+HelloI::sayHello(const Ice::Current&) const
+{
+ cout << "Hello World!" << endl;
+}
+
+void
+HelloI::shutdown(const Ice::Current& c)
+{
+ cout << "Shutting down..." << endl;
+ c.adapter->getCommunicator()->shutdown();
+}