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

Function main

example/cpp11/echo/blocking_udp_echo_server.cpp:32–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

serverFunction · 0.70

Tested by

no test coverage detected