WIP-How to create a simple chat application

From Qt Wiki
Revision as of 16:36, 31 May 2018 by VRonin (talk | contribs) (Removed outdated part)
Jump to navigation Jump to search

Introduction

This article will illustrate a simple chat client and server communicating over TCP. The aim is to clarify aspects of QTcpSocket/QTcpServer that are not developed in the official Qt Fortune example. This has no intention to be a fully featured chat application

The Logic

This application will use a central server that will manage the communication among clients via JSON messages. We'll implement 2 versions of the server, one that runs in a single server and one that distributes the sockets among multiple threads.