Commit d1e3fc10 authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files

Log last successful round.

parent 86b2aa15
Pipeline #2972 passed with stages
in 1 minute and 42 seconds
......@@ -162,15 +162,16 @@ int main(int argc, char **argv) {
char* buffer = calloc(arguments.size + 20, sizeof(char));
check_mem(buffer);
printf("Start receiving.\n");
int round = 0;
while (i < rounds && keepRunning) {
debug(DEBUG_TIMERECEIVER, "About to receive.");
ssize_t n = _recv(s, buffer, arguments.size);
if (n < 0 || errno != 0) {
printf("Aborting: %d\n", errno);
printf("Successfully received packet: %d\n", round);
debug(DEBUG_TIMERECEIVER, "Aborting: %d.", errno);
break;
}
int round = 0;
struct timespec now;
struct timespec *old;
struct timespec *channel;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment