diff --git a/SQCSim-common/define.h b/SQCSim-common/define.h index f65bc2b..cfb4fae 100644 --- a/SQCSim-common/define.h +++ b/SQCSim-common/define.h @@ -7,6 +7,8 @@ #define SRV_PORT 1025 #define CLI_PORT 1026 +#define BUFFER_LENGTH 150 + #define CHUNK_SIZE_X 4 #define CHUNK_SIZE_Y 64 #define CHUNK_SIZE_Z 4 diff --git a/SQCSim-srv/server.cpp b/SQCSim-srv/server.cpp index 51df967..8f4f9a6 100644 --- a/SQCSim-srv/server.cpp +++ b/SQCSim-srv/server.cpp @@ -141,17 +141,12 @@ int Server::Ready() { str.append(log.name).append(" SID: [").append(std::to_string(log.sid).append("]")); Log(str, false, false); - //netprot::Serialize(&log, &buf, &buflen); - //send(sock, buf, buflen, 0); - //buflen = 150; netprot::sendPack(sock, &log, &buf, &buflen); play.id = getUniqueId(); memcpy(play.name, log.name, std::strlen(log.name) + 1); play.tid = log.tid; - //netprot::Serialize(&m_game, &buf, &buflen); - //send(sock, buf, buflen, 0); netprot::sendPack(sock, &m_game, &buf, &buflen); Connection* conn = new Connection(sock, sockad, log, play);