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

Adapt recv/send programs.

parent 857f5de3
......@@ -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, i, buffer);
i++;
usleep(1);
}
......
......@@ -33,7 +33,7 @@ int main(int argc, char *const argv) {
size_t len = 0;
int j = 0;
int rounds = 1;
int rounds = 10;
while(j < rounds) {
fp = fopen("/opt/in.txt", "r");
......@@ -53,8 +53,9 @@ int main(int argc, char *const argv) {
if (line)
free(line);
usleep(1000*1000);
usleep(1000*1000*10);
PrrtSocket_close(socket);
free(socket);
printf("COMPLETELY CLOSED\n");
return 0;
......
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