Skip to content
Snippets Groups Projects
Commit 3e7fad01 authored by zwart's avatar zwart
Browse files

BugID: 677

Added ugly hack for udp sockets that are read as if it is raw ethernet
parent b0d87cf7
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,12 @@ void WH_Strip::process()
cout<<"WH_Strip sending "<<myEthFrame.getPayloadSize()<<" bytes"<<endl;
bool ret = itsTH.sendNonBlocking(myEthFrame.getPayloadp(), myEthFrame.getPayloadSize(), 0);
ASSERTSTR(ret, "TH couldn't send data");
if(!ret) {
cerr<<"TH couldn't send data, retrying"<<endl; // This is specifically for UDP sockets that are not really received by another process
// The first call gives a 'connection refused' message, but a resend will really send the data
ret = itsTH.sendNonBlocking(myEthFrame.getPayloadp(), myEthFrame.getPayloadSize(), 0);
}
// we handled one alarm, so decrease it
theirNoAlarms--;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment