QTcpServer is a Qt class embedding a TCP-based server.
The QTcpServer
class provides a TCP-based server.
This class makes it possible to accept incoming TCP connections. You can specify the port or have QTcpServer pick one automatically. You can listen on a specific address or on all the machine's addresses.
The official Qt documentation can be found here for Qt 4.8 and here for Qt 5.