From fbf6e2bff1695c199e1c31e053dc094ac3097d01 Mon Sep 17 00:00:00 2001 From: Dhanya Maliakal Date: Wed, 31 Aug 2016 10:23:58 +0200 Subject: [PATCH] not done --- .../src/UDPStandardImplementation.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/slsReceiverSoftware/src/UDPStandardImplementation.cpp b/slsReceiverSoftware/src/UDPStandardImplementation.cpp index 887b827a4..0e9dc9015 100644 --- a/slsReceiverSoftware/src/UDPStandardImplementation.cpp +++ b/slsReceiverSoftware/src/UDPStandardImplementation.cpp @@ -1643,23 +1643,7 @@ int UDPStandardImplementation::prepareAndListenBuffer(int ithread, int cSize, ch if(status != TRANSMITTING) receivedSize = udpSocket[ithread]->ReceiveDataOnly(buffer[ithread] + HEADER_SIZE_NUM_TOT_PACKETS + cSize, (bufferSize * numberofJobsPerBuffer) - cSize); - - //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<