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

Function main

example/cpp11/echo/blocking_tcp_echo_server.cpp:54–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54int main(int argc, char* argv[])
55{
56 try
57 {
58 if (argc != 2)
59 {
60 std::cerr << "Usage: blocking_tcp_echo_server <port>\n";
61 return 1;
62 }
63
64 boost::asio::io_context io_context;
65
66 server(io_context, std::atoi(argv[1]));
67 }
68 catch (std::exception& e)
69 {
70 std::cerr << "Exception: " << e.what() << "\n";
71 }
72
73 return 0;
74}

Callers

nothing calls this directly

Calls 1

serverFunction · 0.70

Tested by

no test coverage detected