Linux & C++: Easy way to exchange objects between two processes
I would like to know开发者_开发问答 what is the easiest way (amongst various alternatives) to exchange objects (or some data) between two linux-based systems.
It appears socket-programming could be a choice, but I have not done it earlier so I am not sure if it is the best way. Could anyone point me to a reference please?
TIA, Sviiya
You could have a look at Boost IPC, as well as Google's Protocol Buffers. Or just generally, read this SO post concerning platform independent IPC, it's not exactly what you want, but should give you some good pointers.
there are several way to implement inter process communication in Linux it depended on what exactly it is you are trying to accomplish see here for details :
For exchanging objects between programs on the same or different computers I would use SOAP or CORBA
精彩评论