New network code (better buffer sizes)
This commit is contained in:
parent
89a8defde6
commit
8e6f99ecb7
|
@ -27,7 +27,7 @@
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
||||||
#define SEND_BUFFER_SIZE 80
|
#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_IP_ADDR "127.0.0.1"
|
||||||
#define SERVER_PORT 9000
|
#define SERVER_PORT 9000
|
||||||
|
|
|
@ -39,7 +39,7 @@ void ServerInit(Server_t *server)
|
||||||
pthread_create(server->id, NULL, serverMain, server);
|
pthread_create(server->id, NULL, serverMain, server);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define SEND_BUFFER_SIZE 80
|
#define SEND_BUFFER_SIZE 80 * 24
|
||||||
#define RECEIVE_BUFFER_SIZE 80
|
#define RECEIVE_BUFFER_SIZE 80
|
||||||
static void serverCommunicationInstance(Server_t *args, int sockfd)
|
static void serverCommunicationInstance(Server_t *args, int sockfd)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue