mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 06:50:02 +02:00
not significant
This commit is contained in:
parent
11f6d883be
commit
49b0dce727
@ -586,30 +586,10 @@ typedef struct
|
||||
//if length given, listens to length, else listens for packetsize till length is reached
|
||||
if(length){
|
||||
|
||||
/*int k =0;*/
|
||||
|
||||
while(length>0){
|
||||
nsending = (length>packet_size) ? packet_size:length;
|
||||
|
||||
/*
|
||||
//created for debugging on 11.05.2015
|
||||
nsending=5000;
|
||||
|
||||
nsent = recvfrom(socketDescriptor,(char*)buf,nsending, 0, (struct sockaddr *) &clientAddress, &clientAddress_length);
|
||||
|
||||
if(nsent <1000){
|
||||
if(nsent < 48){
|
||||
cout << " "<<nsent<<" ";
|
||||
}else{
|
||||
cout << "nsent: " << nsent << "\tfnum:" <<
|
||||
htonl(*(unsigned int*)((eiger_image_header *)((char*)(buf)))->fnum)<< "\t";
|
||||
|
||||
cout << k <<" packets" << endl;
|
||||
k = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
k++;
|
||||
*/
|
||||
|
||||
|
||||
nsent = recvfrom(socketDescriptor,(char*)buf+total_sent,nsending, 0, (struct sockaddr *) &clientAddress, &clientAddress_length);
|
||||
|
Loading…
x
Reference in New Issue
Block a user