What is the best way for C# app to communicate unix c++ app

c#, interop, unix

Solution

Web services or soap would be fairly easy, however, if the C++ application isn't a web server naturally (or the C# application), it may be easier to just use socket programming directly.

Sockets are fairly easy to use from both C# and C++. They give you complete control over the type of date transmitted, at the cost of potentially a little more work in the handling.

The biggest issues to watch for are probably endianness of binary data, and encoding of text data, if you use sockets directly. Otherwise, it's very easy.

Problem

the ways I can think of - Web service or soap - Socket - Database table - shared file Any concise example you know of for webservice?

Original source

Related problems