Запущенный асинхронный сервер

This commit is contained in:
2023-09-14 21:39:36 +03:00
parent a80508d3a8
commit 0ff54f68f2
5 changed files with 46 additions and 5 deletions

View File

@ -88,7 +88,7 @@ int main()
constexpr net::ip::port_type port = 8080;
http_server::ServeHttp(ioc, {address, port}, [](auto&& req, auto&& sender)
{
// sender(HandleRequest(std::forward<decltype(req)>(req)));
sender(HandleRequest(std::forward<decltype(req)>(req)));
});
net::steady_timer t {ioc, 30s};