January 2016
Beginner
512 pages
12h 35m
English
To get familiar with QTcpServer and QTcpSocket, let's develop a simple chat program. This example will teach you the basic knowledge of network handling in Qt so that you can use this skill later to connect two or more copies of a game. At the end of this exercise, we want to see something like this:

On both the left-hand side and the right-hand side of the preceding figure, you can see a client, whereas the server is in the middle. We'll start by taking a closer look at the server.