Explorar o código

udpgw: change default parameters

ambrop7 %!s(int64=14) %!d(string=hai) anos
pai
achega
ed56e305bf
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      udpgw/udpgw.h

+ 2 - 2
udpgw/udpgw.h

@@ -36,10 +36,10 @@
 #define CONNECTION_UDP_BUFFER_SIZE 1
 #define CONNECTION_UDP_BUFFER_SIZE 1
 
 
 // maximum number of clients
 // maximum number of clients
-#define DEFAULT_MAX_CLIENTS 4
+#define DEFAULT_MAX_CLIENTS 3
 
 
 // maximum connections for client
 // maximum connections for client
-#define DEFAULT_MAX_CONNECTIONS_FOR_CLIENT 512
+#define DEFAULT_MAX_CONNECTIONS_FOR_CLIENT 256
 
 
 // how long after nothing has been received to disconnect a client
 // how long after nothing has been received to disconnect a client
 #define CLIENT_DISCONNECT_TIMEOUT 20000
 #define CLIENT_DISCONNECT_TIMEOUT 20000