qt6-bb10/tests/auto/network/socket/qudpsocket
Alex Trotsenko 6adff20fe6 Fix bytesAvailable() on UDP under Windows
When ::WSAIoctl() reports 1 byte available for reading, we are trying
to peek an incoming datagram to ensure that the data is actually
delivered. But, according to MSDN docs, we are not allowed to pass NULL
as 'lpNumberOfBytesRecvd' parameter to ::WSARecvFrom() call, if
'lpOverlapped' parameter is also NULL.

The case with an empty datagram is fixed accordingly.

Change-Id: Id13038245332d3fb4bc18038d44a7cfd7ce04775
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2017-07-30 13:02:30 +00:00
..
clientserver Updated license headers 2016-01-21 18:55:18 +00:00
test Merge remote-tracking branch 'origin/5.7' into dev 2016-06-21 08:39:41 +02:00
udpServer Merge remote-tracking branch 'origin/5.6' into 5.7 2016-05-06 15:36:44 +02:00
.gitignore Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
BLACKLIST Fix bytesAvailable() on UDP under Windows 2017-07-30 13:02:30 +00:00
qudpsocket.pro Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
tst_qudpsocket.cpp Use QSharedPointer::create() more 2017-07-19 13:40:42 +00:00