일단 iocp는 완성한 듯 윈도우에서만 되면 될 듯

This commit is contained in:
2025-05-02 19:30:37 +09:00
parent 7fabc98456
commit 181d30ff28
10 changed files with 147 additions and 53 deletions

View File

@@ -8,7 +8,7 @@ int main() {
Chattr::TCPSocket sock;
sock.init(AF_INET6);
Chattr::Address serveraddr(AF_INET6, "fd8a:5f:3adb:774d:dfae:983f:2e7a:ffba", 9010);
Chattr::Address serveraddr(AF_INET6, "::1", 9011);
sock.connect(serveraddr);
spdlog::info("Connection established from {}", (std::string)serveraddr);
@@ -27,5 +27,5 @@ int main() {
sock.recv(&packet.serialized, 1500, 0);
packet.convToH();
// sleep(1000000);
sleep(1000000);
}