MCPcopy Create free account
hub / github.com/boostorg/asio / main

Function main

example/cpp14/echo/async_udp_echo_server.cpp:61–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59};
60
61int main(int argc, char* argv[])
62{
63 try
64 {
65 if (argc != 2)
66 {
67 std::cerr << "Usage: async_udp_echo_server <port>\n";
68 return 1;
69 }
70
71 boost::asio::io_context io_context;
72
73 server s(io_context, std::atoi(argv[1]));
74
75 io_context.run();
76 }
77 catch (std::exception& e)
78 {
79 std::cerr << "Exception: " << e.what() << "\n";
80 }
81
82 return 0;
83}

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected