New network code (better buffer sizes)

This commit is contained in:
Adrien Bourmault 2021-07-08 00:35:22 +02:00
parent 89a8defde6
commit 8e6f99ecb7
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
#include <sys/socket.h>
#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

View File

@ -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)
{