Unsolved IPC: Events between processes?
-
Hi all,
what is the best way to send events between processes with Qt?
I am writing data to a shared memory randomly. But instead of frequently reading out the shared memory I want to get notified when new data is available.
D-bus could be a solution, but I think it is not available on windows.
And I don't want to use Windows events because it should also work on Linux.
Are there any ipc functions like system wide event between processes in Qt?regards
Oliver -
@stvokr You could start here: http://doc.qt.io/qt-5/ipc.html
-
I have started there but there nothing reliable for me.
As I mentioned, D-bus is Linux only, Window events is Windows only. QSystemSemaphore manages resources but does not notify. Perhaps QUdpSocket as a broadcast could be a solution. -
Hi,
D-Bus is available on all three major desktops except it's not installed by default in Linux nor Windows.
What kind of process do you have in mind ?
QLocalSocket/Server is the combo that comes to mind.