planaria / ox

An RPC library for C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ox

An RPC library for C++

Features

  • 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;
});

Requirements

Supported Compilers

  • Clang (>=3.8.1)

External Libraries

  • Boost C++ Libraries (>= 1.65.1)
  • cereal
  • Catch (for test)

License

The BSD 3-Clause License (see LICENSE)

About

An RPC library for C++

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 95.9%Language:Makefile 4.1%