mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-19 00:07:13 +02:00
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:
@ -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() {
|
||||
|
Reference in New Issue
Block a user