Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TPF
jacktrip
Commits
422d9453
Commit
422d9453
authored
Jul 13, 2020
by
cc
Browse files
bumped winsock to 2.2, wVersionRequested
parent
bb5c2d3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/UdpDataProtocol.cpp
View file @
422d9453
...
...
@@ -188,7 +188,7 @@ int UdpDataProtocol::bindSocket()
WSADATA
wsaData
;
int
err
;
wVersionRequested
=
MAKEWORD
(
1
,
1
);
wVersionRequested
=
MAKEWORD
(
2
,
2
);
err
=
WSAStartup
(
wVersionRequested
,
&
wsaData
);
if
(
err
!=
0
)
{
...
...
@@ -200,8 +200,8 @@ int UdpDataProtocol::bindSocket()
// Confirm that the Windows Sockets DLL supports 1.1. or higher
if
(
LOBYTE
(
wsaData
.
wVersion
)
!=
1
||
HIBYTE
(
wsaData
.
wVersion
)
!=
1
)
{
if
(
LOBYTE
(
wsaData
.
wVersion
)
!=
2
||
HIBYTE
(
wsaData
.
wVersion
)
!=
2
)
{
// Tell the user that we couldn't find a useable
// winsock.dll.
WSACleanup
(
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment