Skip to content
Snippets Groups Projects
Commit 96890cb0 authored by Casey Goodlett's avatar Casey Goodlett
Browse files

style: reindent packet file sender

parent 922caf47
No related merge requests found
......@@ -74,31 +74,29 @@ int main(int argc, char* argv[])
while (packetReader.IsOpen())
{
const unsigned char* data = 0;
unsigned int dataLength = 0;
double timeSinceStart = 0;
if (!packetReader.NextPacket(data, dataLength, timeSinceStart))
{
printf("end of packet file\n");
break;
}
if (dataLength != 1206)
{
continue;
}
size_t bytesSent = socket.send_to(boost::asio::buffer(data, dataLength), destinationEndpoint);
if ((++packetCounter % 500) == 0)
{
printf("total sent packets: %lu\n", packetCounter);
}
boost::this_thread::sleep(boost::posix_time::microseconds(200));
const unsigned char* data = 0;
unsigned int dataLength = 0;
double timeSinceStart = 0;
if (!packetReader.NextPacket(data, dataLength, timeSinceStart))
{
printf("end of packet file\n");
break;
}
if (dataLength != 1206)
{
continue;
}
size_t bytesSent = socket.send_to(boost::asio::buffer(data, dataLength), destinationEndpoint);
if ((++packetCounter % 500) == 0)
{
printf("total sent packets: %lu\n", packetCounter);
}
boost::this_thread::sleep(boost::posix_time::microseconds(200));
}
}
catch( std::exception & e )
{
......
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