Changeset 10080 for fact/FADctrl/FADctrl.cc
- Timestamp:
- 01/05/11 14:12:25 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/FADctrl/FADctrl.cc
r10077 r10080 48 48 sleep(1); 49 49 50 DimClient::sendCommand(SERVER_NAME"/Command", "dac 0 21000"); 51 DimClient::sendCommand(SERVER_NAME"/Command", "dac 1 0"); 52 DimClient::sendCommand(SERVER_NAME"/Command", "dac 2-3 5000"); 50 DimClient::sendCommand(SERVER_NAME"/Command", "dac 0 25000"); 51 DimClient::sendCommand(SERVER_NAME"/Command", "dac 1-3 0"); 53 52 DimClient::sendCommand(SERVER_NAME"/Command", "dac 4-7 28800"); 54 53 sleep (1); … … 105 104 106 105 // Terminate thread for other sockets 107 if ((Ret = pthread_cancel(Thread)) != 0) printf("Error: Could not request thread cancellation (%s)\n", strerror(Ret));108 if ((Ret = pthread_join(Thread, NULL)) != 0) printf("pthread_join() failed (%s)\n", strerror(Ret));106 if ((Ret = pthread_cancel(Thread)) != 0) printf("Error: Could not request thread cancellation in main() (%s)\n", strerror(Ret)); 107 if ((Ret = pthread_join(Thread, NULL)) != 0) printf("pthread_join() failed in main () (%s)\n", strerror(Ret)); 109 108 } 110 109 … … 169 168 if(Ret == 0) printf("OtherSockets: Connection to port %d not existing anymore\n", List[i]); 170 169 else if (Ret == -1) printf("OtherSockets: Error reading from port %d (%s)\n", List[i], strerror(errno)); 171 else printf("OtherSockets: Read %d bytes from port %d\n", Ret, List[i]);170 else ;//printf("OtherSockets: Read %d bytes from port %d\n", Ret, List[i]); 172 171 } 173 172 }
Note:
See TracChangeset
for help on using the changeset viewer.