qt5base-lts/examples/network
Giuseppe D'Angelo 1018dba04f Torrent example: fix crash
Yet Another Side Effect of not keeping iterator stability.

Although not idiomatic, the pattern

  while (i != e) {
    auto cur = i++;
    if (cond)
      erase(cur);
  }

was actually correct. Move to the idiomatic erase pattern
instead (it = cont.erase(it)).

The example still has memory problems all over the place on
shutdown. At least now it doesn't crash when running.

Change-Id: I30bd2c4e2b3fa7fe4e28d4426ff3d894b9bae103
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
2020-05-11 10:21:29 +02:00
..
blockingfortuneclient Merge remote-tracking branch 'origin/5.15' into dev 2020-02-28 09:48:30 +01:00
broadcastreceiver Regenerate examples 2020-02-04 18:50:39 +00:00
broadcastsender Regenerate examples 2020-02-04 18:50:39 +00:00
dnslookup Regenerate examples 2020-02-04 18:50:39 +00:00
doc QAbstractSocket: deprecate 'error' signal, use 'errorOccurred' instead 2020-02-27 13:56:45 +01:00
download Merge remote-tracking branch 'origin/5.15' into dev 2020-02-28 09:48:30 +01:00
downloadmanager Merge remote-tracking branch 'origin/5.15' into dev 2020-02-28 09:48:30 +01:00
fortuneclient Merge remote-tracking branch 'origin/5.15' into dev 2020-02-28 09:48:30 +01:00
fortuneserver Merge remote-tracking branch 'origin/5.15' into dev 2020-02-26 18:39:21 +01:00
googlesuggest Merge remote-tracking branch 'origin/5.15' into dev 2020-02-28 09:48:30 +01:00
http Merge remote-tracking branch 'origin/5.15' into dev 2020-03-04 14:39:18 +00:00
loopback Merge remote-tracking branch 'origin/5.15' into dev 2020-02-28 09:48:30 +01:00
multicastreceiver Regenerate examples 2020-02-04 18:50:39 +00:00
multicastsender Merge "Merge remote-tracking branch 'origin/wip/cmake' into dev" 2020-02-11 10:19:42 +01:00
multistreamclient Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
multistreamserver Regenerate examples 2020-02-04 18:50:39 +00:00
network-chat Merge remote-tracking branch 'origin/5.15' into dev 2020-02-28 09:48:30 +01:00
securesocketclient Merge remote-tracking branch 'origin/5.15' into dev 2020-04-23 01:00:36 +02:00
secureudpclient Regenerate examples 2020-02-04 18:50:39 +00:00
secureudpserver Regenerate examples 2020-02-04 18:50:39 +00:00
shared Polish SCTP examples 2016-08-03 11:46:21 +00:00
threadedfortuneserver Merge remote-tracking branch 'origin/5.15' into dev 2020-02-28 09:48:30 +01:00
torrent Torrent example: fix crash 2020-05-11 10:21:29 +02:00
CMakeLists.txt Merge remote-tracking branch 'origin/5.15' into dev 2020-02-26 18:39:21 +01:00
network.pro Remove bearer management from remaining network examples 2020-02-19 13:28:00 +01: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.