summaryrefslogtreecommitdiffstats
path: root/src/testlib/doc/snippets
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2023-06-14 18:48:19 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2023-07-17 16:49:16 +0000
commit226d06402b0fe8e95d6261c788df61f0af91b2f9 (patch)
tree718855e747859edc70788929917d606a0aa25cf4 /src/testlib/doc/snippets
parent5651be517a9f25798a051f7dd7548d40381148df (diff)
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>
Diffstat (limited to 'src/testlib/doc/snippets')
0 files changed, 0 insertions, 0 deletions