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

Function main

example/cpp14/echo/blocking_tcp_echo_server.cpp:57–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

serverFunction · 0.70

Tested by

no test coverage detected