qt5base-lts/examples/network
Mårten Nordheim 2a80adc2f6 Network-chat example: Use QHash for peers
We don't key it on IP address anymore so we can drop
the use of QMultiHash.
This also requires moving the connections for error and disconnected
to readyForUse so we don't remove an active connection when a second
connection attempt happens from the same peer process.
But since we still need to deallocate those connection attempts
if they error out or simply disconnect, we connect their signals to the
QObject::deleteLater slot. In some cases we might call deleteLater twice
but that's fine.

Change-Id: I48c27de1e51a52ef61cfb941a7a81b358ae9ce3f
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Konrad Kujawa <konrad.kujawa@qt.io>
2023-07-17 18:49:16 +02:00
..
blockingfortuneclient Fortune* Example: Bump QDataStream format version 2023-01-17 16:15:11 +01:00
broadcastreceiver examples: Connect Quit action to QCoreApplication::quit, not QWidget::close 2023-02-20 15:18:18 +01:00
broadcastsender examples: Connect Quit action to QCoreApplication::quit, not QWidget::close 2023-02-20 15:18:18 +01:00
dnslookup Fix deprecation warnings agains u"..."_qs in dnslookup.cpp 2023-06-07 10:26:04 +02:00
doc broadcast{receiver,sender}: update meta info 2023-07-12 11:29:55 +02:00
fortuneclient Fortune* Example: remove needless unset-ing of window flag 2023-01-17 16:15:11 +01:00
fortuneserver Fortune* Example: remove needless unset-ing of window flag 2023-01-17 16:15:11 +01:00
http HTTP example: Reflow QMessageBox usage in if-statement 2023-02-02 18:03:36 +00:00
multicastreceiver Clean up multicast examples 2023-03-23 16:02:28 +01:00
multicastsender Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
multistreamclient Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
multistreamserver Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
network-chat Network-chat example: Use QHash for peers 2023-07-17 18:49:16 +02:00
rsslisting Doc: RSS listing example: Fix file quoting 2023-06-15 11:34:17 +00:00
securesocketclient securesocketclient: Replace QLatin1Char with char16_t literal 2023-07-12 11:29:22 +02:00
secureudpclient Examples: Do not wrap custom types in Qt namespace 2023-01-02 23:16:30 +01:00
secureudpserver Examples: Do not wrap custom types in Qt namespace 2023-01-02 23:16:30 +01:00
shared Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
threadedfortuneserver Fortune* Example: Bump QDataStream format version 2023-01-17 16:15:11 +01:00
torrent Examples: Remove unnecessary Q_INIT_RESOURCE calls 2023-06-08 16:15:02 +00:00
CMakeLists.txt Move RSS listing example to networking 2023-06-14 11:57:31 +02:00
network.pro Move RSS listing example to networking 2023-06-14 11:57:31 +02:00
README Remove references to demos from docs. 2011-07-05 19:57:54 +02:00

Qt is provided with an extensive set of network classes to support both
client-based and server side network programming.

These examples demonstrate the fundamental aspects of network programming
with Qt.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.