| 42 | }; |
| 43 | |
| 44 | int main(int argc, char* argv[]) { |
| 45 | auto test_server = std::make_unique<TestServer>(); |
| 46 | // Run netcat 0.0.0.0 5760 to test |
| 47 | while (true) { |
| 48 | std::this_thread::sleep_for(std::chrono::seconds(1)); |
| 49 | std::string buff = "Hello\n"; |
| 50 | const int buff_size = buff.length() + 1; |
| 51 | test_server->send_message_to_all_clients((uint8_t*)buff.c_str(), buff_size); |
| 52 | } |
| 53 | std::this_thread::sleep_for(std::chrono::seconds(100)); |
| 54 | } |
nothing calls this directly
no test coverage detected