Commit cd696857 authored by sletz's avatar sletz
Browse files

Correct netjack2 socket init code.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3915 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 0bcd75fa
......@@ -99,6 +99,13 @@ namespace Jack
Reset();
}
fSockfd = socket ( AF_INET, SOCK_DGRAM, 0 );
/* Enable address reuse */
int res, on = 1;
if ((res = setsockopt( fSockfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on))) < 0) {
StrError(NET_ERROR_CODE);
}
return fSockfd;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment