开源软件名称:button-chen/buttonrpc_cpp14开源软件地址:https://github.com/button-chen/buttonrpc_cpp14开源编程语言:C++ 77.0%开源软件介绍:buttonrpc - modern rpc framework for C++
Features
Exampleserver: #include "buttonrpc.hpp"
int foo(int age, int mm){
return age + mm;
}
int main()
{
buttonrpc server;
server.as_server(5555);
server.bind("foo", foo);
server.run();
return 0;
} client: #include <iostream>
#include "buttonrpc.hpp"
int main()
{
buttonrpc client;
client.as_client("127.0.0.1", 5555);
int a = client.call<int>("foo", 2, 3).val();
std::cout << "call foo result: " << a << std::endl;
system("pause");
return 0;
}
// output: call foo result: 5
DependencesBuilding
Usage
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论