1 Star 0 Fork 0

walter / ice-python-demos

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

python -m pip --default-timeout=100 install zeroc-ice --user

(venv) ✘  ~/PycharmProjects/ice-python-demos /hello  python server.py Hello World!

(venv) ✘  ~/PycharmProjects/ice-python-demos /hello  python client.py

usage:
t: send greeting as twoway
o: send greeting as oneway
O: send greeting as batch oneway
d: send greeting as datagram
D: send greeting as batch datagram
f: flush all batch requests
T: set a timeout
P: set a server delay
S: switch secure mode on/off
s: shutdown server
x: exit
?: help

==> t ==>

已存在的文件夹或 Git 仓库 cd existing_folder git init git remote add origin git@gitee.com:walter80/ice-python-demos.git git add . git commit git push -u origin master

This demo illustrates how to invoke ordinary (twoway) operations, as well as how to make oneway, datagram, secure, and batched invocations.

To run the demo, first start the server:

python server.py

In a separate window, start the client:

python client.py

To test timeouts you can use 'T' to set an invocation timeout on the client proxy and 'P' to set a delayed response in the server to cause a timeout.

空文件

简介

ice-python教程 展开 收起
Python
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/walter80/ice-python-demos.git
git@gitee.com:walter80/ice-python-demos.git
walter80
ice-python-demos
ice-python-demos
master

搜索帮助