Commit 64dcbcaf authored by sletz's avatar sletz
Browse files

Enable local access in NetJack2 code.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4568 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 8156ce92
......@@ -36,6 +36,10 @@ John Emmas
Jackdmp changes log
---------------------------
2011-11-06 Stephane Letz <letz@grame.fr>
* Enable local access in NetJack2 code.
2011-11-04 Stephane Letz <letz@grame.fr>
* Fix jack_set_port_name API.
......
......@@ -713,10 +713,14 @@ namespace Jack
return NET_SOCKET_ERROR;
}
// bind the socket
if (fSocket.Bind() == SOCKET_ERROR) {
jack_error("Can't bind the socket : %s", StrError(NET_ERROR_CODE));
return NET_SOCKET_ERROR;
if (fSocket.IsLocal(fMulticastIP)) {
jack_info("Local IP is used...");
} else {
// bind the socket
if (fSocket.Bind() == SOCKET_ERROR) {
jack_error("Can't bind the socket : %s", StrError(NET_ERROR_CODE));
return NET_SOCKET_ERROR;
}
}
// timeout on receive
......
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