支持 gRPC c++

问题描述

golang 可以像这样注册自定义压缩器

grpc.UseCompressor(gzip.Name)

https://github.com/grpc/grpc-go/blob/master/encoding/encoding.go

在 C++ 中,只支持几种压缩算法

ChannelArguments args;
// Set the default compression algorithm for the channel.
args.SetCompressionAlgorithm(GRPC_COMPRESS_GZIP);
GreeterClient greeter(grpc::CreateCustomChannel(
  "localhost:50051",grpc::InsecureChannelCredentials(),args));

是否可以在使用C++时自定义gRPC中的响应消息压缩算法

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)