Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
43
awaitable<void> handle_connection(tcp::socket sock)
44
{
45
time_point deadline{};
46
co_await (echo(sock, deadline) && watchdog(deadline));
47
}
48
49
awaitable<void> listen(tcp::acceptor& acceptor)
50
{
Callers
1
listen
Function · 0.85
Calls
2
watchdog
Function · 0.85
echo
Function · 0.70
Tested by
no test coverage detected