This is a discussion on interprocess communication in C++ within the Linux Networking forums, part of the Linux Forums category; Hello! What mechanisms are usually used for interprocess communication in C++? When project consists of several processes located at different ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello!
What mechanisms are usually used for interprocess communication in C++? When project consists of several processes located at different network nodes how it is easier to program all the messaging between processes/classes. Example: one class calls the function from another class that is located on another computer. Thank you for any keywords! |
|
|||
|
In <ee5ntu$d2tlr$1@hades.rz.uni-saarland.de> "Aleksej" <qnx@mail.ru> writes:
>Hello! >What mechanisms are usually used for interprocess communication in C++? When >project consists of several processes located at different network nodes how >it is easier to program all the messaging between processes/classes. >Example: one class calls the function from another class that is located on >another computer. You have a couple of options to do that: 1. SUN-RPC - stone old, but still works. Not very nice to use from C++, though. 2. XML-RPC - newer, free libraries are available, some have a C++ interface. 3. CORBA - not so new, but can be used very elegantly and clean if you stick to the basics (read "Advanced CORBA Programming with C++" by Henning/ Vinoski to avoid troubles). .... this list is not complete, feel free to fill it up. I've personally used 2 & 3 and would not again use XML-RPC. SUN-RPC is almost dead, so I would recommend CORBA. There are a lot of free ORBs around (TAO, omniORB, etc.), you have a nice IDL, etc. YMMV, Uli -- Dipl. Inf. Ulrich Teichert|e-mail: Ulrich.Teichert@gmx.de Stormweg 24 |listening to: Cauchemar (Opération S) 24539 Neumuenster, Germany|Good Looks, Big Deal (Sweatmaster) |
|
|||
|
C++ has no native IPC mechanisms. However, you can use any of Linux' through
the standard Linux APIs: sockets, pipes, named pipes, semaphores, shared memory, message queues, etc. However, you seem to be asking not about interprocess communication, but rather network communication. In that case there's the low-level network APIs and for things like computing clusters there's stuff like MPI, PVM, MOSIX, etc. Aleksej wrote: > Hello! > > What mechanisms are usually used for interprocess communication in C++? > When project consists of several processes located at different network > nodes how it is easier to program all the messaging between > processes/classes. Example: one class calls the function from another > class that is located on another computer. > > Thank you for any keywords! |