qt6-bb10/tests/auto/network/socket/qudpsocket
Thiago Macieira 484a186f50 QNativeSocketEngine/Win: fix getting the datagram destination
Looks like I never even tested this. There were two problems:
 1) when we asked for the recvmsg and sendmsg functions, we used the
    wrong variable (socketDescriptor was still -1)
 2) we extracted the destination addresses, but never set them in the
    QIpPacketHeader object

The added tests confirm that this works on Windows, Linux, Darwin,
FreeBSD. There also seems to be a problem, obtaining the destination
address on an IPv4 socket with a dual-stack sender (I can reproduce that
on FreeBSD, macOS and Windows, plus an old version of Linux).

Task-number: QTBUG-63605
Change-Id: I638cf58bfa7b4e5fb386fffd14ea732bddbc0c42
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
2017-11-04 19:12:18 +00:00
..
clientserver Updated license headers 2016-01-21 18:55:18 +00:00
test QNativeSocketEngine/Win: fix getting the datagram destination 2017-11-04 19:12:18 +00: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 QNativeSocketEngine/Win: fix getting the datagram destination 2017-11-04 19:12:18 +00:00