JAVA-Ice-Client连接C++-Ice-Server,并实现基本功能。
Ice编译器安装
用于编译中间件slice文件,JAVA与C++的Ice版本需要统一。
项目搭建
项目搭建参考文章
JAVA-Ice项目搭建:https://jz.wohunlfry.top/2021/09/24/Spring%E5%AE%9E%E7%8E%B0Ice%E5%AE%A2%E6%88%B7%E7%AB%AF-%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%A8%A1%E6%8B%9F/#more
C++-Ice项目搭建:
https://jz.wohunlfry.top/2021/09/28/C-%E5%AE%9E%E7%8E%B0Ice%E5%9F%BA%E6%9C%AC%E9%80%9A%E4%BF%A1%E5%AE%9E%E4%BE%8B/#more
中间件Printer.ice
1 | #pragma once |
IceServer.cpp
1 |
|
IceClient.java
1 | package com.cec.ice.iceClient.client; |