summaryrefslogtreecommitdiffstats
path: root/src/testlib/doc/snippets/code
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2023-06-15 10:18:11 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2023-07-17 18:49:16 +0200
commit2a80adc2f683a6809d0ce30c2423911f32304de2 (patch)
treeff765326aa72ad8f37374fe6c0e31e85c3372f45 /src/testlib/doc/snippets/code
parent226d06402b0fe8e95d6261c788df61f0af91b2f9 (diff)
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>
Diffstat (limited to 'src/testlib/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions