zqrpc:使用zeromq的协议缓冲区RPC

时间:2021-05-03 09:29:53
【文件属性】:
文件名称:zqrpc:使用zeromq的协议缓冲区RPC
文件大小:79KB
文件格式:ZIP
更新时间:2021-05-03 09:29:53
C++ ZQRPC:协议缓冲区RPC传输 想法是创建一种机制,用于在并行发送多个请求并在需要时获取答案。 在这两者之间,客户端线程可以*地做自己的工作。 不必以与提交结果相同的顺序来获取结果。 请查看示例文件夹。 用法 服务器 以n = 1个字符串开始上下文并设置服务器 context = new zmq::context_t(1); zqrpc::RpcServer rpc_server(context); // zqrpc::RpcServer rpc_server(context,".extn"); 设置侦听端点。 rpc_server.EndPoint("tcp://*.9038"); rpc_server.EndPoint("tcp://*.9039"); 注册处理程序实现的服务。 zqrpc::ServiceBase *service = new EchoService
【文件预览】:
zqrpc-master
----simple()
--------Client.cc(880B)
--------Server.cc(850B)
--------CMakeLists.txt(190B)
----include()
--------zqrpc.hpp(2KB)
--------zqrpc()
----LICENSE(1KB)
----src()
--------RpcChannel.cc(5KB)
--------RpcServer.cc(7KB)
--------ServiceBase.cc(109B)
--------RpcWorker.cc(5KB)
--------CMakeLists.txt(926B)
----cmake_modules()
--------FindProtobufPlugin.cmake(9KB)
--------library_suffix.cmake(290B)
--------build_deps.cmake(726B)
--------FindZeroMQ.cmake(1KB)
--------zqrpc_functions.cmake(518B)
--------LibFindMacros.cmake(4KB)
--------FindGlog.cmake(1KB)
----plugin()
--------FileGenerator.cc(9KB)
--------ServiceGenerator.hh(3KB)
--------strutil.h(19KB)
--------FileGenerator.hh(1KB)
--------common.h(40KB)
--------substitute.h(7KB)
--------ServiceGenerator.cc(12KB)
--------ZqrpcCppMain.cc(232B)
--------cpp_helpers.cc(13KB)
--------cpp_helpers.h(7KB)
--------CMakeLists.txt(385B)
--------ZqrpcCppGenerator.cc(3KB)
--------ZqrpcCppGenerator.hh(812B)
----examples()
--------EchoServer.cc(3KB)
--------EchoEndpoint.hh(1KB)
--------CMakeLists.txt(567B)
--------echo.proto(272B)
--------EchoClient.cc(4KB)
----.gitignore(70B)
----activate_stderr.sh(27B)
----CMakeLists.txt(3KB)
----README.md(3KB)

网友评论