diff options
author | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-11-25 11:20:25 (GMT) |
---|---|---|
committer | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-11-25 12:27:13 (GMT) |
commit | af628d615a6e28a5c539bec818f0eb9792f05756 (patch) | |
tree | dc76f53a9ab41e35d4e1084d3b081b7fe76729ff | |
parent | e506a8dcd7d29ce32d339b05a2e3b904d4b4ed0c (diff) | |
download | Qt-af628d615a6e28a5c539bec818f0eb9792f05756.zip Qt-af628d615a6e28a5c539bec818f0eb9792f05756.tar.gz Qt-af628d615a6e28a5c539bec818f0eb9792f05756.tar.bz2 |
Fix Broadcast receiver example.
The broadcast receiver should share the port number. In most cases users
won't run the example on a network, but only on one machine. In the case
it simply should work too.
According to our documentation the fix is platform specific, it will
work only on Linux.
Reviewed-by: Peter Hartmann
-rw-r--r-- | examples/network/broadcastreceiver/receiver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/broadcastreceiver/receiver.cpp b/examples/network/broadcastreceiver/receiver.cpp index 0a5922b..7889a05 100644 --- a/examples/network/broadcastreceiver/receiver.cpp +++ b/examples/network/broadcastreceiver/receiver.cpp @@ -52,7 +52,7 @@ Receiver::Receiver(QWidget *parent) //! [0] udpSocket = new QUdpSocket(this); - udpSocket->bind(45454); + udpSocket->bind(45454, QUdpSocket::ShareAddress); //! [0] //! [1] |