# ice-cpp-demos **Repository Path**: walter80/ice-cpp-demos ## Basic Information - **Project Name**: ice-cpp-demos - **Description**: ice cpp教程 - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ~/CLionProjects/ice-cpp-demos/cpp11/Ice/hello  ./server Hello World! ✘  ~/CLionProjects/ice-cpp-demos/cpp11/Ice/hello  ./client 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 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-cpp-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][1], [datagram][2], [secure][3], and [batched][4] invocations. To run the demo, first start the server: ``` server ``` In a separate window, start the client: ``` client ``` To test [timeouts][5] 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. [1]: https://doc.zeroc.com/ice/4.0/client-side-features/oneway-invocations [2]: https://doc.zeroc.com/ice/4.0/client-side-features/datagram-invocations [3]: https://doc.zeroc.com/ice/4.0/ice-plugins/icessl [4]: https://doc.zeroc.com/ice/4.0/client-side-features/batched-invocations [5]: https://doc.zeroc.com/ice/4.0/client-side-features/invocation-timeouts