blob: 0ca249cd35da30dd1059dfff784b298072544c0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/usr/bin/env python
# **********************************************************************
#
# Copyright (c) 2003-2009 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.
#
# **********************************************************************
import sys, traceback, Ice
Ice.loadSlice('Hello.ice')
import Demo
try:
communicator = Ice.initialize(sys.argv)
hello = Demo.HelloPrx.checkedCast(communicator.stringToProxy("hello:tcp -p 10000"))
hello.sayHello()
communicator.destroy()
except:
traceback.print_exc()
sys.exit(1)
|