mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 09:10:01 +02:00
trying
This commit is contained in:
parent
873d536729
commit
e3455fe1ff
@ -618,13 +618,14 @@ enum communicationProtocol{
|
|||||||
while(length>0){
|
while(length>0){
|
||||||
if(length<packet_size){
|
if(length<packet_size){
|
||||||
nsending = length; //works for jungfrau to read packet header
|
nsending = length; //works for jungfrau to read packet header
|
||||||
cprintf(BLUE,"Read %d\n",nsending);
|
cprintf(BLUE,"will read %d\n",nsending);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
cprintf(BG_RED,"should not have been here!!\n");
|
cprintf(BG_RED,"should not have been here length:%d packet_size:%d !!\n");
|
||||||
nsending = (length>packet_size) ? packet_size:length; //works for eiger to get packets to discard image header packets
|
nsending = (length>packet_size) ? packet_size:length; //works for eiger to get packets to discard image header packets
|
||||||
}
|
}
|
||||||
nsent = recvfrom(socketDescriptor,(char*)buf+total_sent,nsending, 0, (struct sockaddr *) &clientAddress, &clientAddress_length);
|
nsent = recvfrom(socketDescriptor,(char*)buf+total_sent,nsending, 0, (struct sockaddr *) &clientAddress, &clientAddress_length);
|
||||||
|
cprintf(BLUE,"read %d\n",nsending);
|
||||||
if(nsent != nsending){ //if((nsent != nsending)){ && (nsent < packet_size)){
|
if(nsent != nsending){ //if((nsent != nsending)){ && (nsent < packet_size)){
|
||||||
if(nsent && (nsent != header_packet_size) && (nsent != -1))
|
if(nsent && (nsent != header_packet_size) && (nsent != -1))
|
||||||
cprintf(RED,"Incomplete Packet size %d\n",nsent);
|
cprintf(RED,"Incomplete Packet size %d\n",nsent);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user