Browse Source

Correct socket code to avoid connection refused error on OSX.

tags/1.9.7
Stéphane Letz Torben Hohn 16 years ago
parent
commit
5f403c232e
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      common/JackLibAPI.cpp
  2. +1
    -1
      common/JackServerAPI.cpp
  3. +1
    -1
      posix/JackSocket.cpp

+ 1
- 1
common/JackLibAPI.cpp View File

@@ -68,7 +68,7 @@ jack_client_t* jack_client_new_aux(const char* client_name, jack_options_t optio


jack_log("jack_client_new %s", client_name); jack_log("jack_client_new %s", client_name);
if (status == NULL) /* no status from caller? */
if (status == NULL) /* no status from caller? */
status = &my_status; /* use local status word */ status = &my_status; /* use local status word */
*status = (jack_status_t)0; *status = (jack_status_t)0;




+ 1
- 1
common/JackServerAPI.cpp View File

@@ -64,7 +64,7 @@ jack_client_t* jack_client_new_aux(const char* client_name, jack_options_t optio


jack_log("jack_client_new %s", client_name); jack_log("jack_client_new %s", client_name);
if (status == NULL) /* no status from caller? */
if (status == NULL) /* no status from caller? */
status = &my_status; /* use local status word */ status = &my_status; /* use local status word */
*status = (jack_status_t)0; *status = (jack_status_t)0;




+ 1
- 1
posix/JackSocket.cpp View File

@@ -260,7 +260,7 @@ int JackServerSocket::Bind(const char* dir, const char* name, int which) // A re
goto error; goto error;
} }


if (listen(fSocket, 1) < 0) {
if (listen(fSocket, 100) < 0) {
jack_error("Cannot enable listen on server socket err = %s", strerror(errno)); jack_error("Cannot enable listen on server socket err = %s", strerror(errno));
goto error; goto error;
} }


Loading…
Cancel
Save