WIP-How to create a simple chat application: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Removed outdated part) |
||
Line 5: | Line 5: | ||
=== The Logic === | === The Logic === | ||
This application will use a central server that will manage the communication among clients via [https://www.json.org/ JSON] messages. | This application will use a central server that will manage the communication among clients via [https://www.json.org/ 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. | |||
Revision as of 16:36, 31 May 2018
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.