blob: 30244a502da8d780cc34e850e0cf161bdaf7cd79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// **********************************************************************
//
// 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 <IceE/IceE.h>
#include <HelloI.h>
using namespace std;
void
HelloI::sayHello(const Ice::Current& c) const
{
#ifdef _WIN32_WCE
c.adapter->getCommunicator()->getLogger()->trace("", "Hello World!");
#else
printf("Hello World!\n");
#endif
}
void
HelloI::shutdown(const Ice::Current& c)
{
printf("Shutting down...\n");
c.adapter->getCommunicator()->shutdown();
}
|