I am running two separate GUI applications both written in Nim and compiled to run either on GTK or MSW. I need a way for one of the apps to cause an event to appear in the other app's event queue. It would be nice if the event could carry a data string (at most 255 bytes). The app needing to receive the event uses startProcess to begin execution of the app which will cause the event.
Currently this is implemented using file creation and a special BUSY loop which also iterates the receiving GUI event loop.
A Named Pipe with "read peeking" might solve the problem - but I cannot find Named Pipes in the Nim standard library.
I noticed something in MS Windows 10 called Universal Windows Platform, but I doubt it would be in the oldwinapi module - and would not support the GTK version.
Any kind of hint or pointer would be appreciated.
Many thanks to dom96 and ka.
Much code for thought. I had trouble with async some time ago - but I guess I will have to dive back into it. Anyway, I already see bits of code that might help me.
Does oldwinapi contain winlean or must both be imported or do they conflict ??
Can running a socket server on a shared machine open up vulnerabilities ?
Again, thanks