BError err;
int n = 0;
#if GETDATA_LOG
dfprintf("PuServer::getData: Chan: %d Period: %d StartTime: %d Orbit: %d Bunch: %d Function: %d NumValues: %d Beyond: %d\n",
dataInfo.channel,
dataInfo.cyclePeriod, dataInfo.startTime, dataInfo.orbitNumber, dataInfo.bunchNumber,
dataInfo.function, dataInfo.numValues, dataInfo.beyondPeriod);
#endif
while(err = opuProcess.getData(puChannel, dataInfo, data, orbitNumber)){
if(err = handleError(err, n++))
break;
}
#if GETDATA_LOG
dfprintf("PuServer::getData: End: NumValues: %d\n", dataInfo.numValues);
#endif
return err;
}
BError PuServer::requestData(PuChannel puChannel, DataInfo dataInfo){
BError err;
int n = 0;
while(err = opuProcess.requestData(puChannel, dataInfo)){
if(err = handleError(err, n++))
break;
}
return err;
}