Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible that we could communicate C++ program in linux to a C# program acting as server using Remote Method Invocation?

Is it possible to implement client/server communication between a C++ program (client program) running in linux OS with a C# program(server program) running in Windows using RMI implementation?Can anyone suggest any possible way...Any kind of helpful reference is welcome

like image 594
titto.sebastian Avatar asked Dec 02 '22 16:12

titto.sebastian


1 Answers

You would need to go along the lines of Google Protobuf. It is available with C++ and C# as well.

A similar answer from MSDN

It does not matter if you send data from java,c++ or c#, when it goes over the network it's just 1s and 0s. It's a matter of what you do with it on the client/server side. So, be sure that the data that you receive corresponds with the structure that you have (that you want to deserialize to).

Sometimes you need to manually put the bits and bytes together to get it all working out. However, there is something called "Protobuff" that can help you get a common structure of the data that you send, google it and read all about it.

You can implement client server with sockets and serialize/deserialize it using protobuf. (MSDN link might help in solution)

like image 112
Muhammad Umar Farooq Avatar answered Jan 11 '23 23:01

Muhammad Umar Farooq