Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的项目中使用 grpc,客户端是用 Java 编写的,服务器端是用 C++ 编写的。
我的问题是,在客户端,有没有办法ManagedChannel从现有Socket对象创建而不是调用ManagedChannelBuilder.forAddress(host, port)?
ManagedChannel
Socket
ManagedChannelBuilder.forAddress(host, port)
不,这是不可能的。另见:https ://github.com/grpc/grpc-java/issues/3132