Parcourir la source

Correct bug of message length

Jean Fromentin il y a 1 an
Parent
commit
7dd212d7cc
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1 1
      c++/dist/message.hpp
  2. 2 2
      c++/src/config.hpp

+ 1 - 1
c++/dist/message.hpp

@@ -7,7 +7,7 @@
 #include <cstring>
 #include "task.hpp"
 
-#define MAX_MSG_SIZE 1024
+#define MAX_MSG_SIZE 65536
 
 enum MessageType : char{UNKOWN,CODE,STRING,INTEGER,DATA};
 

+ 2 - 2
c++/src/config.hpp

@@ -4,9 +4,9 @@
 
 using namespace std;
 //#define DATA_DIR string("/home/fromentin/data/") //string("/workdir/lmpa/jfromentin/")
-#define SERVER_IP "10.1.0.104" //"192.168.1.3" //Orval 04
+#define SERVER_IP "127.0.0.1" //"10.1.0.104" //"192.168.1.3" //Orval 04
 #define SERVER_PORT 55556
-#define MAX_MSG_SIZE 1024
+#define MAX_MSG_SIZE 65536
 #define MAX_CLIENTS 2048
 #define MAX_WORKERS 2048