included more options in user client example, included these in the Makefile

This commit is contained in:
Maliakal Dhanya
2014-05-23 14:46:15 +02:00
parent 6a3ee7fa77
commit 188697b6da
3 changed files with 41 additions and 30 deletions

View File

@@ -18,21 +18,9 @@ where lib is the location of libSlsDetector.so
#include "slsReceiverUsers.h"
#include <signal.h> //SIGINT
#include <cstdlib> //EXIT
#include <iostream>
using namespace std;
/**
close file if receiver process is interrupted
*/
void closeFile(int p){
cout<<"close file in receiver"<<endl;
slsReceiverUsers::closeFile(p);
exit(0);
}
int main(int argc, char *argv[]) {
int ret = 0;
@@ -50,10 +38,7 @@ int main(int argc, char *argv[]) {
if(ret==1)
return -1;
/* Catch signal SIGINT to close files properly */
signal(SIGINT,closeFile);
/*register callbacks */