diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-10-04 12:00:57 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-11-04 19:12:18 +0000 |
commit | 484a186f50de59279cf3c02088273ff114f4cfcf (patch) | |
tree | 20fb181769b34199858e214b7faa38345b816b66 /tests/auto/network/socket/qudpsocket/test/test.pro | |
parent | d674d227f7ab22aed206d3a7f5c96e5e8dfa48f2 (diff) |
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>
Diffstat (limited to 'tests/auto/network/socket/qudpsocket/test/test.pro')
-rw-r--r-- | tests/auto/network/socket/qudpsocket/test/test.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/network/socket/qudpsocket/test/test.pro b/tests/auto/network/socket/qudpsocket/test/test.pro index 73486a2bc3..e856776ddc 100644 --- a/tests/auto/network/socket/qudpsocket/test/test.pro +++ b/tests/auto/network/socket/qudpsocket/test/test.pro @@ -1,6 +1,7 @@ CONFIG += testcase testcase.timeout = 800 # this test is slow SOURCES += ../tst_qudpsocket.cpp +INCLUDEPATH += ../../../../../shared/ QT = core network testlib MOC_DIR=tmp |