Changeset 39 for hvcontrol/src/CCCommand.cc
- Timestamp:
- 05/13/09 10:42:59 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
hvcontrol/src/CCCommand.cc
r35 r39 29 29 return; 30 30 } 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 32 39 SocketAddress.sin_family = PF_INET; 33 40 SocketAddress.sin_port = htons((unsigned short) m->config->fCCPort);
Note:
See TracChangeset
for help on using the changeset viewer.