mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 07:20:01 +02:00
trying
This commit is contained in:
parent
cc11ff29bf
commit
966b513f8f
@ -2102,34 +2102,6 @@ int UDPStandardImplementation::prepareAndListenBuffer(int ithread, int cSize, ch
|
|||||||
int currentfnum=-1;
|
int currentfnum=-1;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cout<<"\ngoing to read header " << JFRAU_HEADER_LENGTH <<endl;
|
|
||||||
receivedSize = udpSocket[ithread]->ReceiveDataOnly(buffer[ithread], JFRAU_HEADER_LENGTH);
|
|
||||||
cout<<"receivedsize:"<<receivedSize<<endl;
|
|
||||||
header = (jfrau_packet_header_t*)(buffer[ithread]);
|
|
||||||
currentpnum = (*( (uint8_t*) header->packetNumber));
|
|
||||||
cout<<"1 current fnum:"<< ((*( (uint32_t*) header->frameNumber))&frameIndexMask) <<endl;
|
|
||||||
cout<<"1 currentpnum:"<<currentpnum<<endl;
|
|
||||||
|
|
||||||
cout<<"\ngoing to read data " << oneDataSize <<endl;
|
|
||||||
receivedSize = udpSocket[ithread]->ReceiveDataOnly(buffer[ithread], oneDataSize);
|
|
||||||
cout<<"receivedsize:"<<receivedSize<<endl;
|
|
||||||
|
|
||||||
|
|
||||||
cout<<"\ngoing to read header " << JFRAU_HEADER_LENGTH <<endl;
|
|
||||||
receivedSize = udpSocket[ithread]->ReceiveDataOnly(buffer[ithread], JFRAU_HEADER_LENGTH);
|
|
||||||
cout<<"receivedsize:"<<receivedSize<<endl;
|
|
||||||
header = (jfrau_packet_header_t*)(buffer[ithread]);
|
|
||||||
currentpnum = (*( (uint8_t*) header->packetNumber));
|
|
||||||
cout<<"2 current fnum:"<< ((*( (uint32_t*) header->frameNumber))&frameIndexMask) <<endl;
|
|
||||||
cout<<"2 currentpnum:"<<currentpnum<<endl;
|
|
||||||
|
|
||||||
exit(-1);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//read first packet header
|
//read first packet header
|
||||||
cout<<"going to read header " << JFRAU_HEADER_LENGTH <<endl;
|
cout<<"going to read header " << JFRAU_HEADER_LENGTH <<endl;
|
||||||
receivedSize = udpSocket[ithread]->ReceiveDataOnly(buffer[ithread] + offset, JFRAU_HEADER_LENGTH);
|
receivedSize = udpSocket[ithread]->ReceiveDataOnly(buffer[ithread] + offset, JFRAU_HEADER_LENGTH);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user