defined generic socket class for both TCP and UDP, inherited by MySocketTCP - send receive funcs should still be implemented

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@332 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
bergamaschi
2012-10-31 11:56:01 +00:00
parent 3f1780f71b
commit 50beac1f8a
5 changed files with 413 additions and 270 deletions

View File

@ -371,14 +371,23 @@ void* postProcessing::processData(int delflag) {
}
//receiver
else{
int prevCaught=getCurrentFrameIndex();
int caught=0;
while(getRunStatus()!=IDLE){
caught=getCurrentFrameIndex();
incrementProgress(caught-prevCaught);
prevCaught=caught;
usleep(1000000);
}
int prevCaught=getCurrentFrameIndex();
int caught=0;
while(getRunStatus()!=IDLE){
caught=getCurrentFrameIndex();
incrementProgress(caught-prevCaught);
prevCaught=caught;
usleep(1000000);
}
/*
if (dataReady) {
// can add get frame from receiver and send it to GUI
thisData=new detectorData(val,err,ang,getCurrentProgress(),(fname+ext).c_str(),np);
dataReady(thisData, pCallbackArg);
delete thisData;
}
*/
}
return 0;
}