The Qt networking module
In the following section, we will learn about the Qt networking module and how it can help us to achieve server-client communication via the TCP or UDP connection protocols.
Connection protocols
The networking module in Qt is the module that offers both low-level networking functionality, such as TCP and UDP sockets, as well as high-level networking classes for web integration and network communication.
In this chapter, we will use the TCP (Transmission Control Protocol) internet protocol for our program instead of the UDP (User Datagram Protocol) protocol. The main difference is that TCP is a connection-oriented protocol that requires all clients to establish a connection to the server before they are able to communicate with each other.
UDP on the other hand is a connectionless protocol that does not require a connection. The client will just send whatever data it needs to send to the destination, without checking if the data has been received by the other end. There...