summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Protocol_FTN
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2012-09-23 23:55:13 +0000
committerStanislaw Halik <sthalik@misaki.pl>2012-09-23 23:55:13 +0000
commitab36e19107f40e362640b4424832615a293cb803 (patch)
treece61bf248df903dcb41938285afccc592ef7ed33 /FTNoIR_Protocol_FTN
parent08dcd4529423663f1e7272454aa4167ea49296f8 (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_Protocol_FTN')
-rwxr-xr-x[-rw-r--r--]FTNoIR_Protocol_FTN/FTNoIR_Protocol_FTN.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/FTNoIR_Protocol_FTN/FTNoIR_Protocol_FTN.cpp b/FTNoIR_Protocol_FTN/FTNoIR_Protocol_FTN.cpp
index 877d4aeb..eb51fb76 100644..100755
--- a/FTNoIR_Protocol_FTN/FTNoIR_Protocol_FTN.cpp
+++ b/FTNoIR_Protocol_FTN/FTNoIR_Protocol_FTN.cpp
@@ -161,7 +161,7 @@ bool FTNoIR_Protocol_FTN::checkServerInstallationOK( HANDLE handle )
inSocket = new QUdpSocket();
// Connect the inSocket to the port, to receive messages
- if (!inSocket->bind(QHostAddress::Any, destPort+1)) {
+ if (!inSocket->bind(QHostAddress::Any, destPort+1, QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint)) {
QMessageBox::warning(0,"FaceTrackNoIR Error", "Unable to bind UDP-port",QMessageBox::Ok,QMessageBox::NoButton);
delete inSocket;
inSocket = 0;