diff options
Diffstat (limited to 'py/modules/IcePy/test.py')
-rw-r--r-- | py/modules/IcePy/test.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/py/modules/IcePy/test.py b/py/modules/IcePy/test.py new file mode 100644 index 00000000000..4f88db214e6 --- /dev/null +++ b/py/modules/IcePy/test.py @@ -0,0 +1,13 @@ +import Ice +Ice.loadSlice("../../demo/Ice/hello/Hello.ice") +c = Ice.initialize() +p = c.stringToProxy("hello:tcp -p 10000") +import Demo +h = Demo.HelloPrx.checkedCast(p) +r1 = h.begin_sayHello(0) + +p2 = c.stringToProxy("hello:tcp -p 10000") +h2 = Demo.HelloPrx.checkedCast(p2) +r2 = h2.begin_sayHello(0) + +h2.end_sayHello(r1) |