From 8e6f99ecb7666e4bd7c2f13619e12cd5de63c640 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Thu, 8 Jul 2021 00:35:22 +0200 Subject: [PATCH] New network code (better buffer sizes) --- src/cli.c | 2 +- src/server.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli.c b/src/cli.c index 788a7f1..0eebee1 100644 --- a/src/cli.c +++ b/src/cli.c @@ -27,7 +27,7 @@ #include #define SEND_BUFFER_SIZE 80 -#define RECEIVE_BUFFER_SIZE 80 +#define RECEIVE_BUFFER_SIZE 80 * 24 #define SERVER_IP_ADDR "127.0.0.1" #define SERVER_PORT 9000 diff --git a/src/server.c b/src/server.c index a10d716..53df171 100644 --- a/src/server.c +++ b/src/server.c @@ -39,7 +39,7 @@ void ServerInit(Server_t *server) pthread_create(server->id, NULL, serverMain, server); } -#define SEND_BUFFER_SIZE 80 +#define SEND_BUFFER_SIZE 80 * 24 #define RECEIVE_BUFFER_SIZE 80 static void serverCommunicationInstance(Server_t *args, int sockfd) {