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

Function ConnectD

library/cpp/coroutine/engine/network.cpp:210–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208
209
210 int ConnectD(TCont* cont, TSocketHolder& s, const struct addrinfo& ai, TInstant deadline) noexcept {
211 TSocketHolder res(Socket(ai));
212
213 if (res.Closed()) {
214 return LastSystemError();
215 }
216
217 const int ret = ConnectD(cont, res, ai.ai_addr, (socklen_t) ai.ai_addrlen, deadline);
218
219 if (!ret) {
220 s.Swap(res);
221 }
222
223 return ret;
224 }
225
226 int ConnectD(TCont* cont, TSocketHolder& s, const TNetworkAddress& addr, TInstant deadline) noexcept {
227 int ret = EHOSTUNREACH;

Callers 4

AllocateMoreMethod · 0.85
ConnectTFunction · 0.85
ConnectIFunction · 0.85
ConnectMethod · 0.85

Calls 8

SocketFunction · 0.85
LastSystemErrorFunction · 0.85
IsBlockedFunction · 0.70
PollDFunction · 0.70
ClosedMethod · 0.45
SwapMethod · 0.45
BeginMethod · 0.45
EndMethod · 0.45

Tested by

no test coverage detected