MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / main

Function main

OpenHD/ohd_common/test/test_tcp_server.cpp:44–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42};
43
44int 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}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected