summaryrefslogtreecommitdiffstats
path: root/src/network/kernel/qnetworkinterface_winrt.cpp
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@theqtcompany.com>2016-04-01 13:42:32 +0200
committerOliver Wolff <oliver.wolff@theqtcompany.com>2016-04-11 11:22:36 +0000
commit09487deeaea584b2abcc2b1049df2a8542bc113e (patch)
tree0eca712033d0b4f0d1b1139260f8deb61272600d /src/network/kernel/qnetworkinterface_winrt.cpp
parentaf32319803847dd97a4df7a6fc6100e193403fb2 (diff)
WinRT: Enable broadcasts
The CanBroadcast flag for QNetworkInterface indicates the ability to work in broadcast mode. As WinRT natively supports udp broadcasts and they work out of the box this flag should be set there. Task-number: QTBUG-49026 Change-Id: I6623014287fe63dc1c353a6de265ebdf9114d013 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
Diffstat (limited to 'src/network/kernel/qnetworkinterface_winrt.cpp')
-rw-r--r--src/network/kernel/qnetworkinterface_winrt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/kernel/qnetworkinterface_winrt.cpp b/src/network/kernel/qnetworkinterface_winrt.cpp
index 1945b2427f..d0a22e9a16 100644
--- a/src/network/kernel/qnetworkinterface_winrt.cpp
+++ b/src/network/kernel/qnetworkinterface_winrt.cpp
@@ -73,6 +73,7 @@ static QNetworkInterfacePrivate *interfaceFromProfile(IConnectionProfile *profil
Q_ASSERT_SUCCEEDED(hr);
if (connectivityLevel != NetworkConnectivityLevel_None)
iface->flags = QNetworkInterface::IsUp | QNetworkInterface::IsRunning;
+ iface->flags |= QNetworkInterface::CanBroadcast;
ComPtr<INetworkAdapter> adapter;
hr = profile->get_NetworkAdapter(&adapter);