summaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/client.c b/client.c
index 3ace3ac..e023465 100644
--- a/client.c
+++ b/client.c
@@ -50,11 +50,18 @@ int main () {
}
}
- if (connect_result == -1 || sockfd == -1) { exit(__FAIL); }
+ if (connect_result == -1 || sockfd == -1) {
+ exit(__FAIL);
+ }
+
char *msg = "Client says hello!\n";
size_t len = strlen(msg);
- send(sockfd, msg, len, 0);
+
+ for (int i = 0 ; i < 10 ; i++) {
+
+ send(sockfd, msg, len, 0);
+ }
freeaddrinfo(res);
return 0;
}