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

Method Execute

library/cpp/neh/asio/tcp_acceptor_impl.cpp:5–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3using namespace NAsio;
4
5bool TOperationAccept::Execute(int errorCode) {
6 if (errorCode) {
7 H_(errorCode, *this);
8
9 return true;
10 }
11
12 struct sockaddr_storage addr;
13 socklen_t sz = sizeof(addr);
14
15 SOCKET res = ::accept(Fd(), (sockaddr*)&addr, &sz);
16
17 if (res == INVALID_SOCKET) {
18 H_(LastSystemError(), *this);
19 } else {
20 NS_.Assign(res, TEndpoint(new NAddr::TOpaqueAddr((sockaddr*)&addr)));
21 H_(0, *this);
22 }
23
24 return true;
25}

Callers

nothing calls this directly

Calls 4

FdFunction · 0.85
LastSystemErrorFunction · 0.85
TEndpointClass · 0.85
AssignMethod · 0.45

Tested by

no test coverage detected