included a short filename for receiver for sebastian, which has a frameindex incrementing by 1

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@356 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d
2012-11-22 12:45:42 +00:00
parent 6a74fda3ed
commit c02075dc12
5 changed files with 28 additions and 4 deletions

View File

@ -6,6 +6,8 @@
#include "slsReceiver_funcs.h"
#include "slsReceiverFunctionList.h"
#include <signal.h> // SIGINT
#include <iostream>
#include <string>
#include <sstream>
@ -91,6 +93,9 @@ slsReceiverFuncs::slsReceiverFuncs(MySocketTCP *&mySocket,string const fname,int
function_table();
slsReceiverList = new slsReceiverFunctionList(shortfname);
//Catch signal SIGINT to close files properly
//signal(SIGINT,closeFile);
success = OK;
}
}
@ -189,6 +194,15 @@ int slsReceiverFuncs::M_nofunc(){
/*
void slsReceiverFuncs::closeFile(int p){
//if(socket)
slsReceiverFunctionList::closeFile(0);
socket->Disconnect();//non static
delete socket;
exit(0);
}
*/
int slsReceiverFuncs::set_file_name() {