MCPcopy Create free account
hub / github.com/catboost/catboost / StartAccept

Method StartAccept

library/cpp/neh/tcp2.cpp:1518–1521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1516 }
1517
1518 void StartAccept(TTcpAcceptor* a) {
1519 const auto s = MakeAtomicShared<TTcpSocket>(EP_.Size() ? EP_.GetExecutor().GetIOService() : EA_.GetIOService());
1520 a->AsyncAccept(*s, std::bind(&TServer::OnAccept, this, a, s, _1, _2));
1521 }
1522
1523 void OnAccept(TTcpAcceptor* a, TTcpSocketRef s, const TErrorCode& ec, IHandlingContext&) {
1524 if (Y_UNLIKELY(ec)) {

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.45
AsyncAcceptMethod · 0.45

Tested by

no test coverage detected