Changeset 44 for drsdaq/drsdaq.cpp


Ignore:
Timestamp:
05/19/09 15:57:30 (15 years ago)
Author:
ogrimm
Message:
Raw data format streamlined, revision tracking in run header
File:
1 edited

Legend:

Unmodified
Added
Removed
  • drsdaq/drsdaq.cpp

    r36 r44  
    6262 
    6363  system("clear");
    64   printf("\n************* DRS readout built %s, %s\n\n",__DATE__,__TIME__);
     64  printf("\n*** DRS readout built %s, %s (revision %s) *** \n\n",__DATE__, __TIME__, REVISION);
    6565
    6666  // Set signal handlers
     
    170170    return;
    171171  }
    172  
     172  // Allows immediate reuse of socket after closing (circumvents TIME_WAIT)
     173  int Value=1;
     174  if (setsockopt(ServerSocket, SOL_SOCKET, SO_REUSEADDR, (char *) &Value, sizeof (Value)) == -1) {
     175    m->PrintMessage("Warning: Could not set server socket option SO_REUSEADDR (%s)\n", strerror(errno));
     176  }
     177
    173178  SocketAddress.sin_family = PF_INET;
    174179  SocketAddress.sin_port = htons((unsigned short) m->fCCPort);
Note: See TracChangeset for help on using the changeset viewer.