Networking Forums

Networking Forums > Computer Networking > Linux Networking > interprocess communication in C++

Reply
Thread Tools Display Modes

interprocess communication in C++

 
 
Aleksej
Guest
Posts: n/a

 
      09-12-2006, 07:34 AM
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
 
 
 
 
Ulrich.Teichert@gmx.de
Guest
Posts: n/a

 
      09-13-2006, 07:06 PM
In <ee5ntu$d2tlr$(E-Mail Removed)> "Aleksej" <(E-Mail Removed)> 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: (E-Mail Removed)
Stormweg 24 |listening to: Cauchemar (Opération S)
24539 Neumuenster, Germany|Good Looks, Big Deal (Sweatmaster)
 
Reply With Quote
 
James McIninch
Guest
Posts: n/a

 
      10-24-2006, 02:09 PM
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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AD HOC communication Mobileboy36 Wireless Networks 0 08-12-2010 10:36 AM
SIGIO + TCP communication. gNash Linux Networking 0 06-27-2008 12:02 PM
UNIX Network Programming, Volume 2 (Interprocess Communications) barcaroller Linux Networking 0 08-31-2005 12:20 AM
communication over VPN Amad Malik Windows Networking 1 06-22-2005 02:31 PM
1 NIC, 2 IPs - how to define src ip for communication Brian Windows Networking 0 02-24-2005 08:26 PM



1 2 3 4 5 6 7 8 9 10 11