qt5base-lts/examples
Mårten Nordheim 226d06402b Network-chat: Fix remote peer making multiple connections
The system was just treating IP (and optionally port) as a unique
identifier, so if a peer had multiple possible paths to a client they
would connect multiple times.

This fixes that by generating using QUuid in each client.
We then use this during broadcast, replacing the username we
sent before (which was not used), and as part of the greeting.
The greeting now is more complex, since we need to send both
username and the ID.

Change-Id: I6c6c2ffd5198406aad48445a68dd6aab36de69c0
Reviewed-by: Konrad Kujawa <konrad.kujawa@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
2023-07-17 16:49:16 +00:00
..
aggregate install a sane top-level examples.pro file 2012-12-11 13:37:57 +01:00
corelib XBEL stream example: use constructor initialization 2023-07-17 14:50:51 +02:00
dbus complexpingpong example: Modernize the code 2023-03-28 19:42:01 +02:00
embedded Examples: Remove unnecessary Q_INIT_RESOURCE calls 2023-06-08 16:15:02 +00:00
gui rhiwindow example: Make -g option (OpenGL) work on macOS 2023-06-21 15:09:03 +02:00
network Network-chat: Fix remote peer making multiple connections 2023-07-17 16:49:16 +00:00
opengl Docs: Add link to OPenGL examples to OpenGL index 2023-06-30 18:46:55 +02:00
qmake examples: port qmake examples to new connection style 2022-12-21 22:52:17 +02:00
qtconcurrent Rework imagescaling example to avoid potential crashes 2023-04-26 19:27:30 +02:00
qtestlib Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
sql Doc: Add remaining SQL examples to Data Processing & I/O category 2023-07-13 16:19:05 +02:00
vulkan Polish forward decl in vulkan and opengl examples 2023-06-01 09:09:49 +02:00
widgets Doc fix: Use correct initials for Porter and Duff 2023-07-14 14:56:42 +02:00
xml XBEL DOM example: update the screenshot 2023-07-10 12:57:20 +02:00
CMakeLists.txt Move qpa examples to manual tests 2023-06-26 20:47:45 +02:00
examples.pro Move qpa examples to manual tests 2023-06-26 20:47:45 +02:00
README Remove more references to demos. 2011-07-08 15:36:26 +02:00

Qt is supplied with a number of example applications that have been
written to provide developers with examples of the Qt API in use,
highlight good programming practice, and showcase features found in each of
Qt's core technologies.


Documentation for examples can be found in the Examples section
of the Qt documentation.