I have a C ++ application that should send images from a webcam in real time to a C # application on the same PC. C ++ code cannot be called from C # code, so I need to implement communication through named pipes to send images.
I had never programmed communications before, and I was wondering how to approach this problem.
My first thoughts were for the C ++ application to create a named pipe channel in a separate stream, after creating the stream will wait continuously until the image is available for sending. At that moment he will send the image.
Similarly, a C # application would create a new thread that acts as a client. It will continuously connect to the server and circuit until the image is available. At this point, he will receive the image and save it in the queue, which can be accessed by the main thread.
It makes sense? Is this a better approach?
source share