mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-20 02:40:03 +02:00
included the stop for receiver users, and the start returns
This commit is contained in:
parent
75db3914f2
commit
1f2c98b0fa
Binary file not shown.
Binary file not shown.
@ -89,9 +89,9 @@ int main(int argc, char *argv[]) {
|
||||
break;
|
||||
}
|
||||
|
||||
char *temp[] = {"rx_tcpport", "1957", NULL};
|
||||
char *temp[] = {"receiver", NULL};
|
||||
/** returning when acquisition is finished or data are avilable */
|
||||
std::cout << "answer to a get command:" << pDetector->putCommand(2,temp,0) << std::endl;
|
||||
std::cout << "answer to a get command:" << pDetector->getCommand(1,temp,0) << std::endl;
|
||||
|
||||
delete pDetector;
|
||||
|
||||
|
@ -90,9 +90,13 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
|
||||
/* start receiver to listen for commands from the client (and data from detectors when expected */
|
||||
|
||||
receiver->start();
|
||||
|
||||
|
||||
/** sleep for 10 s*/
|
||||
usleep(10000000);
|
||||
|
||||
/** stop udp socket and tcp socket and thread */
|
||||
receiver->stop();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user