diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2012-09-23 23:55:13 +0000 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2012-09-23 23:55:13 +0000 |
commit | ab36e19107f40e362640b4424832615a293cb803 (patch) | |
tree | ce61bf248df903dcb41938285afccc592ef7ed33 /FTNoIR_Tracker_UDP | |
parent | 08dcd4529423663f1e7272454aa4167ea49296f8 (diff) |
Add a hint at socket creation allowing quick reuse of a socket.
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@163 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Tracker_UDP')
-rwxr-xr-x[-rw-r--r--] | FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp b/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp index 5229ff06..ecf0e5dd 100644..100755 --- a/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp +++ b/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp @@ -132,7 +132,7 @@ void FTNoIR_Tracker::Initialize( QFrame *videoframe ) inSocket = new QUdpSocket();
// Connect the inSocket to the port, to receive messages
- if (!inSocket->bind(QHostAddress::Any, (int) portAddress, QUdpSocket::ShareAddress )) {
+ if (!inSocket->bind(QHostAddress::Any, (int) portAddress, QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint)) {
QMessageBox::warning(0,"FaceTrackNoIR Error", "Unable to bind UDP-port",QMessageBox::Ok,QMessageBox::NoButton);
delete inSocket;
inSocket = 0;
|