Changeset 44 for drsdaq/drsdaq.cpp
- Timestamp:
- 05/19/09 15:57:30 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
drsdaq/drsdaq.cpp
r36 r44 62 62 63 63 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); 65 65 66 66 // Set signal handlers … … 170 170 return; 171 171 } 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 173 178 SocketAddress.sin_family = PF_INET; 174 179 SocketAddress.sin_port = htons((unsigned short) m->fCCPort);
Note:
See TracChangeset
for help on using the changeset viewer.