blob: 5a95a21c54c31ce2396e2e4e23ea410fa408d91c (
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-2013 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 -h localhost -p 10000"))
hello.sayHello()
communicator.destroy()
except:
traceback.print_exc()
sys.exit(1)
|