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

Method accept

example/cpp11/timeouts/server.cpp:383–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381
382private:
383 void accept()
384 {
385 acceptor_.async_accept(
386 [this](const boost::system::error_code& error, tcp::socket socket)
387 {
388 if (!error)
389 {
390 std::make_shared<tcp_session>(std::move(socket), channel_)->start();
391 }
392
393 accept();
394 });
395 }
396
397 boost::asio::io_context& io_context_;
398 tcp::acceptor acceptor_;

Callers 15

test_callbackFunction · 0.45
test_deferredFunction · 0.45
test_futureFunction · 0.45
test_callbackFunction · 0.45
test_deferredFunction · 0.45
test_futureFunction · 0.45
test_callbackFunction · 0.45
test_deferredFunction · 0.45
test_futureFunction · 0.45
test_callbackFunction · 0.45
test_deferredFunction · 0.45
test_futureFunction · 0.45

Calls 3

acceptFunction · 0.85
async_acceptMethod · 0.45
startMethod · 0.45

Tested by 15

test_callbackFunction · 0.36
test_deferredFunction · 0.36
test_futureFunction · 0.36
test_callbackFunction · 0.36
test_deferredFunction · 0.36
test_futureFunction · 0.36
test_callbackFunction · 0.36
test_deferredFunction · 0.36
test_futureFunction · 0.36
test_callbackFunction · 0.36
test_deferredFunction · 0.36
test_futureFunction · 0.36