IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16795


Ignore:
Timestamp:
Mar 4, 2008, 12:16:49 PM (18 years ago)
Author:
eugene
Message:

allow more kapa connections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080223/Ohana/src/libkapa/src/KapaOpen.c

    r14590 r16795  
    22
    33# define MY_PORT 2500
     4# define MY_PORT_MAX 2520
    45# define MY_WAIT 100000
    56# define DEBUG 0
     
    2627  }
    2728
    28   if (DEBUG) fprintf (stderr, "init sock: %d, len: %d\n", InitSocket, length);
     29  if (DEBUG) fprintf (stderr, "init sock: %d, len: %d, port %d\n", InitSocket, length, Address[0].sin_port);
    2930  status = bind (InitSocket, (struct sockaddr *) Address, length);
    3031  if (status == -1) {
     
    3233        close (InitSocket);
    3334        Address[0].sin_port ++;
    34         if (Address[0].sin_port > MY_PORT + 10) exit (2);
     35        if (Address[0].sin_port > MY_PORT_MAX) exit (2);
    3536        goto retry_server;
    3637    }
     
    193194      close (InitSocket);
    194195      Address.sin_port ++;
    195       if (Address.sin_port > MY_PORT + 10) return (-1);
     196      if (Address.sin_port > MY_PORT_MAX) return (-1);
    196197      goto retry_client;
    197198    }
Note: See TracChangeset for help on using the changeset viewer.