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 […]
Tag: qtcpsocket
QT network programming how to use QT6 framework QTcpServer and QTcpSocket network programming to realize variable length data packet sending and receiving: take user registration and login as an example to explain
QT network programming how to use QT6 framework QTcpServer and QTcpSocket network programming to realize variable length data packet sending and receiving: take user registration and login as an example to explain Introduction This article will introduce how to use the QT6 framework QTcpServer and QTcpSocket for network programming to realize variable-length data packet sending […]
Use QTcpSocket and QTcpServer to transfer large files
Qt found in the actual use of Tcp communication that the sending end and the receiving end are not in one-to-one correspondence, and there will be a situation where sending multiple times only corresponds to one time, and when the speed of the sending end far exceeds the receiving end, the program will crash. Small […]