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

Function handle_connection

example/cpp20/coroutines/timeout.cpp:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43awaitable<void> handle_connection(tcp::socket sock)
44{
45 time_point deadline{};
46 co_await (echo(sock, deadline) && watchdog(deadline));
47}
48
49awaitable<void> listen(tcp::acceptor& acceptor)
50{

Callers 1

listenFunction · 0.85

Calls 2

watchdogFunction · 0.85
echoFunction · 0.70

Tested by

no test coverage detected