4

The desired key-feature for me is the ability to register functions of objects to the JSON-RPC server task, which then calls the function, in case the respective JSON-RPC-call was received.

How can this be done?

I found https://github.com/cinemast/libjson-rpc-cpp , but the concept of the stub-generator looks a bit overdone to me.

DPF
  • 270
  • 1
  • 2
  • 12

1 Answers1

8

libjson-rpc-cpp does not require you to use the stub generator. You can always create the bindings manually.

Additional C++ frameworks for JSON-RPC can be found here.

But since you asked for an embedded compatible framework, I'd suggest you stick with libjson-rpc-cpp, since its the most lightweight framework, where you can disable certain features during compilation.

It is also worth mentioning, that I am the author for said framework.

  • the documentation of libjson-rpc-cpp is a little bit overwhelming to me as I am new to C++, can you tell me how to quickly integrate this in a c++ project with just the server where I just register the RPC functions and get it running? – Akay Jan 07 '19 at 18:38