How to establish a host-to-host relationship using qt

the client module is connected to the server, now can a separate program executed by the server module using system () write to the same socket? if so how ..

or should the client program open another socket for this?

+4
source share
1 answer

If your server is based on Qt, you prefer to use QProcess . Now I don’t understand what you want to do: if two persons are allowed to interact with any resource, you will need to clearly control the way of interaction.

The easiest way is to use QSharedMemory : your main server process controls the socket, starts shared memory, and then runs other software. While your other software is running, your main application transfers data from / to the socket to shared memory, and your spawned process only interacts with shared memory.

+1
source

Source: https://habr.com/ru/post/1313843/


All Articles