패킷 정의, 로그가 더 많이 설명하도록 변경
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user