Reputation: 4234
I want to stream some data from my program for other subscribers (other programs). These programs can use these data as streaming event.
What I want?
I will dig more information on my own even if I get a small hint.
Example :
Program A : Object A changed =======> Program B : Report Change in Object A
Upvotes: 3
Views: 2880
Reputation: 40362
Broadly it sounds like you're trying to perform inter-process communication, aka IPC.
In the tags to your question you refer to Windows. This link provides a broad list of the IPC options within Windows.
The tag list for your question also says platform-independent. Either a socket based solution or a Pipe based solution will mostly standard across a large number of platforms that you're likely to develop for. You can either use sockets directly or use one of the numerous cross-platform wrappers, eg. ZeroMQ and Boost, to hide some of the detail.
It's not clear from the question whether Program A and Program B are running on the same machine? If not then using sockets is a better approach.
Upvotes: 0
Reputation: 26303
Best I found:
Pros:
Cons:
Upvotes: 0
Reputation: 29981
Two things are generally used: sockets/pipes which are just your basic byte streams, and message passing which is a bit more complex, made for parallel use and horizontal scalability.
Upvotes: 2
Reputation: 422
I am not sure if it is a bit advanced, but have a look at boost::asio http://www.boost.org/doc/libs/1_39_0/doc/html/boost_asio/overview/core/basics.html
Upvotes: 0