2a80adc2f6
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> |
||
---|---|---|
.. | ||
chatdialog.cpp | ||
chatdialog.h | ||
chatdialog.ui | ||
client.cpp | ||
client.h | ||
CMakeLists.txt | ||
connection.cpp | ||
connection.h | ||
main.cpp | ||
network-chat.pro | ||
peermanager.cpp | ||
peermanager.h | ||
server.cpp | ||
server.h |