summaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-11-27 12:23:26 +0100
committerOskar <[email protected]>2024-11-27 12:23:26 +0100
commita43dc3fcac6d6af0082edc73b0b148ca2c504c3a (patch)
tree52e7172fa1503a218eb9586c99aaf97fda5e5d82 /client.c
parentef276e1e86e4a554141b511757dded2b1f1108fb (diff)
more
Diffstat (limited to 'client.c')
-rw-r--r--client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/client.c b/client.c
index eac217c..1a240a1 100644
--- a/client.c
+++ b/client.c
@@ -20,12 +20,12 @@
int sockfd = -1;
size_t bytes_sent = 0;
-void talk_to_server (int sockfd) {
+void talk_to_server (int ttssockfd) {
fprintf(stdout, "Waiting to connect...\n");
int rcv_ret;
char buf_connected[11];
- rcv_ret = recv(sockfd, buf_connected, 11, 0);
+ rcv_ret = recv(ttssockfd, buf_connected, 11, 0);
buf_connected[rcv_ret] = '\0';
fprintf(stdout, "%s", buf_connected);
while (1) {
@@ -38,7 +38,7 @@ void talk_to_server (int sockfd) {
continue;
}
- bytes_sent = bytes_sent + send(sockfd, editbuffer, fgs_len, 0);
+ bytes_sent = bytes_sent + send(ttssockfd, editbuffer, fgs_len, 0);
}
}