패킷 정의, 로그가 더 많이 설명하도록 변경

This commit is contained in:
2025-04-30 20:13:20 +09:00
parent b662823726
commit af414e58a1
9 changed files with 222 additions and 12 deletions

View File

@@ -5,6 +5,7 @@
#include "Utils/Thread.hpp"
#include "Utils/ThreadPool.hpp"
#include "Utils/StringTokenizer.hpp"
#include "Packet/Packet.hpp"
#include "precomp.hpp"
@@ -63,7 +64,7 @@ int main() {
}
void _TCPClient(Chattr::TCPSocket sock, Chattr::Address addr) {
spdlog::info("Connection accepted. [{}:{}]", sock, (std::string)addr);
spdlog::info("Connection accepted. [{}]", (std::string)addr);
char buf[1024];
@@ -74,5 +75,5 @@ void _TCPClient(Chattr::TCPSocket sock, Chattr::Address addr) {
std::string recvData(buf, redSize);
spdlog::info("Red size : {}, {}", redSize, recvData);
}
spdlog::info("Client disconnected. [{}:{}]", sock, (std::string)addr);
spdlog::info("Client disconnected. [{}]", (std::string)addr);
}