mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 09:10:01 +02:00
not done
This commit is contained in:
parent
be2bc15ab5
commit
fbf6e2bff1
@ -1643,23 +1643,7 @@ int UDPStandardImplementation::prepareAndListenBuffer(int ithread, int cSize, ch
|
|||||||
|
|
||||||
if(status != TRANSMITTING)
|
if(status != TRANSMITTING)
|
||||||
receivedSize = udpSocket[ithread]->ReceiveDataOnly(buffer[ithread] + HEADER_SIZE_NUM_TOT_PACKETS + cSize, (bufferSize * numberofJobsPerBuffer) - cSize);
|
receivedSize = udpSocket[ithread]->ReceiveDataOnly(buffer[ithread] + HEADER_SIZE_NUM_TOT_PACKETS + cSize, (bufferSize * numberofJobsPerBuffer) - cSize);
|
||||||
|
cout<<ithread<<" receivedSize:"<<receivedSize<<endl;
|
||||||
//throw away packets that is not one packet size
|
|
||||||
while((myDetectorType == EIGER) &&
|
|
||||||
(receivedSize != ((bufferSize * numberofJobsPerBuffer) - cSize)) &&
|
|
||||||
(status != TRANSMITTING)) {
|
|
||||||
if(receivedSize != EIGER_HEADER_LENGTH)
|
|
||||||
cprintf(RED,"Listening_Thread %d: Listened to a weird packet size %d\n",ithread, receivedSize);
|
|
||||||
#ifdef DEBUG
|
|
||||||
else
|
|
||||||
cprintf(BLUE,"Listening_Thread %d: Listened to a header packet\n",ithread);
|
|
||||||
#endif
|
|
||||||
//listen again
|
|
||||||
if(status != TRANSMITTING)
|
|
||||||
receivedSize = udpSocket[ithread]->ReceiveDataOnly(buffer[ithread] + HEADER_SIZE_NUM_TOT_PACKETS + cSize, (bufferSize * numberofJobsPerBuffer) - cSize);
|
|
||||||
//cout<<ithread<<" receivedSize:"<<receivedSize<<endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
totalListeningPacketCount[ithread] += (receivedSize/onePacketSize);
|
totalListeningPacketCount[ithread] += (receivedSize/onePacketSize);
|
||||||
|
|
||||||
#ifdef MANUALDEBUG
|
#ifdef MANUALDEBUG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user