An RPC library for C++
- Header-only (except external libraries)
#include <ox/ox.hpp>
using function_type = void(int, std::function<void(int)>);
// server
ox::server<function_type> server([](auto x, auto f) {
f(x + 1);
});
// client
ox::client<function_type> client("localhost");
client(1, [&](auto x) {
std::cout << x << std::endl;
});
- Clang (>=3.8.1)
The BSD 3-Clause License (see LICENSE)