Reputation: 21
We have two applications: one uses C/Fortran, and the other one is using C++.
Any helpful ideas are deeply appreciated.
Upvotes: 2
Views: 828
Reputation:
What should be very easy to use would be zeromq for your case. Also a plus would be the great documentation.
Upvotes: 0
Reputation: 21
I am not sure what is your OS and requirements but if both applications run on the same Linux machine you could also take a look at DBUS.
Another way to go is to use webservices like gSOAP. You can use it together with Eclipse to edit the WSDL and maybe SoaMoa for testing the webservice.
Both of these options are quite high level so you don't have to work directly with the sockets and serialization/deserialization.
Upvotes: 0
Reputation: 1980
There are several ways of Inter-process communication, see this link comparison of IPC methods. The choice here depends on several variables, such as: Are these applications running on different machines vs one, are they on different operating systems, how fast, and how reliable, and the complexity of the implementation. My favorite in this case is Named Pipes, it is easy to implement and it is reliable Named Pipes:
Upvotes: 0
Reputation: 40578
Simplest way would be to use message passing via sockets, TCP or UDP depending on your needs.
How to pass data using sockets in C
Upvotes: 1