included the stop for receiver users, and the start returns

This commit is contained in:
Maliakal Dhanya 2014-05-23 18:24:52 +02:00
parent 75db3914f2
commit 1f2c98b0fa
4 changed files with 8 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View File

@ -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;

View File

@ -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;
}