Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
56cb6116
Commit
56cb6116
authored
Jan 11, 2017
by
Sander Smeets
Browse files
UDP join multicast group for windows client
parent
dce91913
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/comm/UDPLink.cc
View file @
56cb6116
...
...
@@ -245,6 +245,7 @@ bool UDPLink::_hardwareConnect()
_socket
->
setProxy
(
QNetworkProxy
::
NoProxy
);
_connectState
=
_socket
->
bind
(
host
,
_udpConfig
->
localPort
(),
QAbstractSocket
::
ReuseAddressHint
|
QUdpSocket
::
ShareAddress
);
if
(
_connectState
)
{
_socket
->
joinMulticastGroup
(
QHostAddress
(
"224.0.0.1"
));
//-- Make sure we have a large enough IO buffers
#ifdef __mobile__
_socket
->
setSocketOption
(
QAbstractSocket
::
SendBufferSizeSocketOption
,
64
*
1024
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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