interprocess communication in C++

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 ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-12-2006
Aleksej
 
Posts: n/a
Default interprocess communication in C++

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!



Reply With Quote
  #2 (permalink)  
Old 09-13-2006
Ulrich.Teichert@gmx.de
 
Posts: n/a
Default Re: interprocess communication in C++

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)
Reply With Quote
  #3 (permalink)  
Old 10-24-2006
James McIninch
 
Posts: n/a
Default Re: interprocess communication in C++

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!


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:47 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0