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

Function main

example/cpp14/echo/blocking_udp_echo_server.cpp:33–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33int main(int argc, char* argv[])
34{
35 try
36 {
37 if (argc != 2)
38 {
39 std::cerr << "Usage: blocking_udp_echo_server <port>\n";
40 return 1;
41 }
42
43 boost::asio::io_context io_context;
44
45 server(io_context, std::atoi(argv[1]));
46 }
47 catch (std::exception& e)
48 {
49 std::cerr << "Exception: " << e.what() << "\n";
50 }
51
52 return 0;
53}

Callers

nothing calls this directly

Calls 1

serverFunction · 0.70

Tested by

no test coverage detected