7

I am looking for a lightweight opensource library/framework preferably written in C/C++ (it doesn't have to support x languages and should be easy to understand and use.) which can be used to make RPC over internal linux sockets or pipes. In other words I am looking for an RPC possibility which can be run over some of the linux IPC mechanisms.

Thanks

G.G.
  • 147
  • 1
  • 4
  • 10

4 Answers4

2

Not exactly lightwieght, but Dbus is an answer and it's standard on most linux distributions these days.

Burton Samograd
  • 3,652
  • 19
  • 21
  • As you said, Dbus is not really lightweight. I am looking for something which is less complex. – G.G. Sep 08 '11 at 16:05
2

Look at msgpack-rpc. It's easy and very simple RPC implementation.

qehgt
  • 2,972
  • 1
  • 22
  • 36
  • Thank you for the hint but it looks like C/C++ RPC implementation of the msgpack-rpc is not done yet. – G.G. Sep 08 '11 at 16:35
  • Updated link to C++ msgpack-rpc : https://github.com/jubatus/jubatus-msgpack-rpc/tree/master/cpp – cs01 Apr 24 '15 at 17:48
1

I guess you don't want any fancy framework and can handle simple library calls. The linux rpc library should then be sufficient: See the manpage, and maybe this tutorial.

evnu
  • 6,450
  • 2
  • 27
  • 38
0

SUN ONC RPC library for Linux is a good solution. Also you can use the rpcgen compiler to generate server and client stubs.

All you have to do is to write an .x in the RPCL language an compile it using rpcgen.

Here is an example that I have published in github: https://github.com/issamabd/SDL-PPONG

It uses RPC calls to connect two PingPong players over the network.