mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-06 18:10:40 +02:00
trying
This commit is contained in:
parent
21ccb211c1
commit
13d225377d
@ -629,7 +629,7 @@ enum communicationProtocol{
|
|||||||
int currentpnum;
|
int currentpnum;
|
||||||
|
|
||||||
cout<<"\ngoing to read header " << endl;
|
cout<<"\ngoing to read header " << endl;
|
||||||
nsent = recvfrom(socketDescriptor,(char*)buf,22, 0, (struct sockaddr *) &clientAddress, &clientAddress_length);
|
nsent = recv(socketDescriptor,(char*)buf,22, 0);
|
||||||
cout<<"nsent:"<<nsent<<endl;
|
cout<<"nsent:"<<nsent<<endl;
|
||||||
header = (jfrau_packet_header_t1*)(buf);
|
header = (jfrau_packet_header_t1*)(buf);
|
||||||
currentpnum = (*( (uint8_t*) header->packetNumber));
|
currentpnum = (*( (uint8_t*) header->packetNumber));
|
||||||
@ -637,12 +637,12 @@ enum communicationProtocol{
|
|||||||
cout<<"1 currentpnum:"<<currentpnum<<endl;
|
cout<<"1 currentpnum:"<<currentpnum<<endl;
|
||||||
|
|
||||||
cout<<"\ngoing to read data " << endl;
|
cout<<"\ngoing to read data " << endl;
|
||||||
nsent = recvfrom(socketDescriptor,(char*)buf,8192, 0, (struct sockaddr *) &clientAddress, &clientAddress_length);
|
nsent = recv(socketDescriptor,(char*)buf,8192, 0);
|
||||||
cout<<"nsent:"<<nsent<<endl;
|
cout<<"nsent:"<<nsent<<endl;
|
||||||
|
|
||||||
|
|
||||||
cout<<"\ngoing to read header " << endl;
|
cout<<"\ngoing to read header " << endl;
|
||||||
nsent = recvfrom(socketDescriptor,(char*)buf,22, 0, (struct sockaddr *) &clientAddress, &clientAddress_length);
|
nsent = recv(socketDescriptor,(char*)buf,22, 0);
|
||||||
cout<<"nsent:"<<nsent<<endl;
|
cout<<"nsent:"<<nsent<<endl;
|
||||||
header = (jfrau_packet_header_t1*)(buf);
|
header = (jfrau_packet_header_t1*)(buf);
|
||||||
currentpnum = (*( (uint8_t*) header->packetNumber));
|
currentpnum = (*( (uint8_t*) header->packetNumber));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user