¿Existe una API en C ++ para la comunicación remota entre procesos?

I'm looking for the equivalent of RMI API (in java) in C++ standards. The processes will be running in different machines.

preguntado el 08 de noviembre de 11 a las 18:11

2 Respuestas

There are many C++ APIs for inter-process communication. But none of them are part of the C++ standard library.

Sugiero usar Impulsar el interproceso.

But if you're talking across different machines, you need networking, not interprocess communication. That requires a networking library (also not standard); Boost.Asio is a reasonable networking library.

respondido 08 nov., 11:23

The question was about processes which are running on different machines. Boost.Interprocess is not suitable. - Kirill V. Lyadvinsky

@KirillV.Lyadvinsky: Good point; it cannot. But Boost.Asio can ;) - Nicol bolas

Asio can as well as sockets. It's too low-level. - Kirill V. Lyadvinsky

@KirillV.Lyadvinsky: Asio has many higher-level primitives built on sockets (streams, etc). Whether it is too low-level is for the person asking the question to decide. - Nicol bolas

C++ Standard can't help you in here. You can use DCOM or Corba (and there are more) depending on which OS you're using.

respondido 08 nov., 11:23

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.