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

Update sender and receiver script.

parent f9f8ab2f
......@@ -36,7 +36,7 @@ int main(int argc, char* const argv[]) {
continue;
}
buffer[n] = '\0';
//printf("[B (n: %3d, i: %3d)] %s", n, i, buffer);
printf("[B (n: %3d, i: %3d)] %s\n", n, i, buffer);
i++;
usleep(1);
}
......
......@@ -29,11 +29,11 @@ int main(int argc, char *const argv) {
debug("SENDING\n");
uint32_t j = 0;
int rounds = 65536;
int rounds = 10000;
while(j < rounds) {
char buf[MAX_PAYLOAD_LENGTH];
sprintf(buf, "%10d", j);
sprintf(buf, "%10d", j+1);
PrrtSocket_send(socket, buf, strlen(buf));
j++;
......
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