We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
各位小伙伴,srpc会根据IDL文件自动生成两份代码:
server.pb_skeleton.cc
client.pb_skeleton.cc
server.thrift_skeleton.cc
client.thrift_skeleton.cc
原生成的代码里thrift部分有误,会默认启动SRPCServer和SRPCClient,已经改成默认启动ThriftFramed协议的ThriftServer和ThriftClient了,main()函数如下:
SRPCServer
SRPCClient
ThriftServer
ThriftClient
int main() { unsigned short port = 1412; ThriftServer server; // 这里已修改为默认启动ThriftFramed协议的server ExampleServiceImpl example_impl; server.add_service(&example_impl); server.start(port); wait_group.wait(); server.stop(); return 0; }
SRPC的Thrift Framed server/client可以和原生的其他语言的thrift互通,使用非常方便,欢迎大家尝试~
The text was updated successfully, but these errors were encountered:
这个修改只是影响框架代码的默认协议,不是正确性修改。原来的框架代码产生的是SRPC协议,thrift IDL的service,一般大家很少使用。新框架代码产生的就是Thrift framed binary协议的server与client,可以与所有语言的apache thrift互通。
Sorry, something went wrong.
No branches or pull requests
各位小伙伴,srpc会根据IDL文件自动生成两份代码:
server.pb_skeleton.cc
和client.pb_skeleton.cc
;server.thrift_skeleton.cc
和client.thrift_skeleton.cc
;原生成的代码里thrift部分有误,会默认启动
SRPCServer
和SRPCClient
,已经改成默认启动ThriftFramed协议的ThriftServer
和ThriftClient
了,main()函数如下:SRPC的Thrift Framed server/client可以和原生的其他语言的thrift互通,使用非常方便,欢迎大家尝试~
The text was updated successfully, but these errors were encountered: