c++ - Cross platform IPC -


i'm looking suggestions on possible ipc mechanisms are:

  • cross platform (win32 , linux @ least)
  • simple implement in c++ most common scripting languages (perl, ruby, python, etc).
  • finally, simple use programming point of view!

what options are? i'm programming under linux, i'd write portable other oses in future. i've thought using sockets, named pipes, or dbus.

in terms of speed, best cross-platform ipc mechanism pipes. assumes, however, want cross-platform ipc on same machine. if want able talk processes on remote machines, you'll want @ using sockets instead. luckily, if you're talking tcp @ least, sockets , pipes behave pretty same behavior. while apis setting them , connecting them different, both act streams of data.

the difficult part, however, not communication channel, messages pass on it. want @ perform verification , parsing you. recommend looking @ google's protocol buffers. create spec file describes object want pass between processes, , there compiler generates code in number of different languages reading , writing objects match spec. it's easier (and less bug prone) trying come messaging protocol , parser yourself.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -