Browse Source

Enable local access in NetJack2 code.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4568 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.9.8
sletz 14 years ago
parent
commit
64dcbcaf4e
2 changed files with 12 additions and 4 deletions
  1. +4
    -0
      ChangeLog
  2. +8
    -4
      common/JackNetInterface.cpp

+ 4
- 0
ChangeLog View File

@@ -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.


+ 8
- 4
common/JackNetInterface.cpp View File

@@ -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


Loading…
Cancel
Save