diff options
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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; } |