With Microsoft's help i have created a small multithreaded named pipe server. It is not finished yet. Finally i want to connect two MT4-Terminals as Client "X" (aka Client1) and as Client "Y" (aka Client2). At the moment i'am getting an unsorted output. It looks like a asynchronous communication. Perhaps you know what the problem is. Thanks in advance for your answers.
I would recommend you to use memory mapped files:
Thanks for your fast answer, Carl. MMF seems to be much easier than what i did -wasted a whole weekend. I have not read the entire .mqh. Do i need something like a semaphore or is something like that included in the .mqh?
Sorry, I haven't worked with them yet - you have to try yourself. But I guess you have to define your own access management!
I would recommend to have only one directional mm-files means A only writes into f1 and only reads from f1 and as soon B reads from f1 it deletes its content. So that A 'adds' its text (either f1 is empty or it is added at the end) and B reads the whole content all the time and empties it. And as soon as one them accesses f1 it is blocked - which will take take only fractals of mSec.