Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elegant way of doing interlanguage data exchange

I have a socket server which I am writing in C++ and a client which I have written in C#, now I want to send messages between them. I was considering de-serializing 'message' objects to xml and creating object instances across the wire and it looks like a elegant way to do things rather than string/xml parsing but I am open to new ideas, and if anyone has done this before would like to hear your experience, also will this work for data exchange between C# and C++ (Compiled with Microsoft VS but without .NET support)?

Thanks,

Deepak.

like image 229
DeeHawk Avatar asked Dec 20 '25 17:12

DeeHawk


1 Answers

I don't know how much dissonance is caused by the change in languages, but if you want a "platform-independent" way to do it, you could try protocol buffers.

like image 103
Robert Harvey Avatar answered Dec 24 '25 11:12

Robert Harvey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!