Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.5.0, 6.5.1, 6.5.2, 6.5.3, 6.6.0, 6.6.1, 6.6.2, 6.6.3, 6.7.0, 6.7.1, 6.7.2, 6.7.3, 6.8.0
-
None
-
-
f6ccbaa7a (dev)
Description
Not sure whether this makes any difference to the world in general, I just think it's a good idea to default to the latest version. (Specify version 2.2 when initializing Winsock.)
- v2.0 was only an internal draft version.
- v2.1 was the first public winsock 2 specification.
- Nobody needs 16-bit OS support these days anymore?
- v2.2 itself is ages old, and supported back to Windows 95 OSR2.
https://en.wikipedia.org/wiki/Winsock#Specifications
https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-wsastartup
```
QWindowsSockInit::QWindowsSockInit()
: version(0)
{
//### should we try for 2.2 on all platforms ??
WSAData wsadata;
// IPv6 requires Winsock v2.0 or better.
if (WSAStartup(MAKEWORD(2, 0), &wsadata) != 0)
else {
version = 0x20;
```
```
QVERIFY(WSAStartup(MAKEWORD(2,0), &wsaData) == NO_ERROR);
```
```
// IPv6 requires Winsock v2.0 or better.
WSAStartup(MAKEWORD(2,0), &wsadata);
```
```
// IPv6 requires Winsock v2.0 or better.
WSAStartup(MAKEWORD(2,0), &wsadata);
```