qt5base-lts/tests/auto/network/socket/qtcpserver
Øystein Heskestad 782fbe0f63 The new signal pendingConnectionAvailable is added to QTcpServer
The new signal pendingConnnectionAvailable is emitted after a new
connection has been added to the pending connections queue. Connect
to this signal and call nextPendingConnection to handle incoming
connections.

The existing unchanged newConnection signal is emitted after the
overridable function incomingConnection is called, regardless of whether
a new connection is added to the pending connections queue in the
incomingConnection function or not.

If a subclass that overrides incomingConnection either decides to not
add all incoming connections to the pending connections queue, or to
postpone adding the connection until a handshake is successfully
completed, the pendingConnectionAvailable signal should be to used,
because this signal directly corresponds to insertions to the pending
connections queue.

[ChangeLog][QtNetwork][QTcpServer] New signal pendingConnectionAvailable
is emitted when a new connection is added

Task-number: QTBUG-100823
Change-Id: I00c76761389065f68271553e69e6c45c393a2fa8
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
2022-06-04 00:22:55 +00:00
..
crashingServer Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
test Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
.gitignore Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
BLACKLIST unblacklist passing tests 2022 2022-05-18 23:59:19 +02:00
CMakeLists.txt cmake: Enable network test 2019-07-29 13:14:55 +00:00
tst_qtcpserver.cpp The new signal pendingConnectionAvailable is added to QTcpServer 2022-06-04 00:22:55 +00:00