Ignore:
Timestamp:
05/13/09 10:42:59 (16 years ago)
Author:
lstark
Message:
several bugs fixed, higher precision reached
File:
1 edited

Legend:

Unmodified
Added
Removed
  • hvcontrol/src/CCCommand.cc

    r35 r39  
    2929    return;
    3030  }
    31  
     31
     32// Allows immediate reuse of socket after closing (circumvents TIME_WAIT)
     33  int Value=1;
     34  if (setsockopt(ServerSocket, SOL_SOCKET, SO_REUSEADDR, (char *) &Value, sizeof (Value)) == -1) {
     35    sprintf(str,"Warning: Could not set server socket option SO_REUSEADDR (%s).\n",strerror(errno));
     36    m->PrintMessage(str);
     37  }
     38
    3239  SocketAddress.sin_family = PF_INET;
    3340  SocketAddress.sin_port = htons((unsigned short) m->config->fCCPort);
Note: See TracChangeset for help on using the changeset viewer.