qt5base-lts/tests/auto/network/socket
Shane Kearns 46e4a9d523 Windows - fix getsockopt calls for narrower than int options
Windows unhelpfully writes to only one byte of the output buffer
when getsockopt is called for a boolean option. Therefore we have
to zero initialise the int rather than initialising to -1 as was
done before.
This in general only works for little endian architecture, because
the word would look like 0x01000000 on big endian. So I have added
some compile time asserts in the assumption that windows is always
little endian. This is ok for comparisons with 0/false, but not
comparisons with true or nonzero values.
In the case of IPV6_V6ONLY, it is documented as DWORD (unsigned int)
but on some windows versions it is returned as a boolean triggering
the warning. I removed the warning, as the conversion to int works on
both LE and BE since it is only compared with zero.

Task-number: QTBUG-23488
Change-Id: I3c586d1ada76465fc045a82661f289920c657a4c
Reviewed-by: Richard J. Moore <rich@kde.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
2012-03-01 00:09:57 +01:00
..
platformsocketengine Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qabstractsocket Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qhttpsocketengine Improved stability of tst_qhttpsocketengine 2012-02-08 02:10:44 +01:00
qlocalsocket clean up qmake-generated projects 2012-02-24 05:18:30 +01:00
qsocks5socketengine Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtcpserver Windows: Fixed helper process finding in network tests 2012-02-15 02:34:38 +01:00
qtcpsocket Windows - fix getsockopt calls for narrower than int options 2012-03-01 00:09:57 +01:00
qudpsocket Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
socket.pro Enable qlocalsocket auto test 2012-02-21 22:31:00 +01:00