QTcpSocket multi-threaded server MultipleServer

In order to handle multiple client connections, each client needs to inherit QtcpServer to rewrite the incomingConnection function to open a thread. Every time a new client connects to the server, this function will be called automatically. In this function, a new QTcpSocket is constructed and saved. , the main thread and the sub-thread communicate […]