Remove commented out code

This commit is contained in:
Andreas Tsouchlos 2025-04-19 13:40:59 +02:00
parent 1b2d7e49fc
commit ce1afad63f

View File

@ -50,54 +50,3 @@ int main() {
server.disconnect();
}
}
// int main() {
// spdlog::set_level(spdlog::level::debug);
//
// tcp::NonBlockingClient client;
//
// tcp::HostString host = {"localhost"};
// uint16_t port = 65432;
//
// spdlog::info("Connecting to {}:{}", host.data(), port);
//
// if (!client.connect(host, port)) std::terminate();
//
//
// int status = EINPROGRESS;
// while (status == EINPROGRESS) {
// auto statusRes = client.get_last_connection_status();
// if (!statusRes) std::terminate();
// status = statusRes.value();
// }
//
// char buffer[1024];
//
// while (!client.data_available())
// ;
//
// auto recvRes = client.recv(std::span<char>(buffer, sizeof(buffer)));
//
// if (!recvRes) {
// std::terminate();
// }
//
// spdlog::info("Received {} bytes", recvRes.value());
// if (recvRes.value() > 0) {
// spdlog::info("Received message: {}",
// std::string(buffer, recvRes.value()));
// }
//
// EINPROGRESS;
//
// const char* msg = "Hello, world!";
// auto sendRes = client.send(std::span<const char>(msg,
// strlen(msg))); if (!sendRes) {
// spdlog::error("Failed to send message");
// std::terminate();
// }
// spdlog::info("Sent {} bytes", sendRes.value());
// client.disconnect();
//
// return 0;
// }