MCPcopy Create free account
hub / github.com/boostorg/beast / http_server

Function http_server

example/http/server/small/http_server_small.cpp:207–217  ·  view source on GitHub ↗

"Loop" forever accepting new connections.

Source from the content-addressed store, hash-verified

205
206// "Loop" forever accepting new connections.
207void
208http_server(tcp::acceptor& acceptor, tcp::socket& socket)
209{
210 acceptor.async_accept(socket,
211 [&](beast::error_code ec)
212 {
213 if(!ec)
214 std::make_shared<http_connection>(std::move(socket))->start();
215 http_server(acceptor, socket);
216 });
217}
218
219int
220main(int argc, char* argv[])

Callers 1

mainFunction · 0.85

Calls 2

moveClass · 0.85
startMethod · 0.45

Tested by

no test coverage detected