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

Method Connect

library/cpp/netliba/v12/net_test.cpp:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 }
25
26 bool TConnectedSocket::Connect(const sockaddr_in6& addr) {
27 // "connect" - meaningless operation
28 // needed since port unreachable is routed only to "connected" udp sockets in ingenious FreeBSD
29 if (S->Connect((sockaddr*)&addr, sizeof(addr)) < 0) {
30 if (LastSystemError() == EHOSTUNREACH || LastSystemError() == ENETUNREACH) {
31 return false;
32 } else {
33 Y_ASSERT(0);
34 }
35 }
36 return true;
37 }
38
39 void TConnectedSocket::SendEmptyPacket() {
40 TIoVec v;

Callers 3

UpdateAliveMethod · 0.45
GetConnectionMethod · 0.45
GetDebugInfoFunction · 0.45

Calls 3

LastSystemErrorFunction · 0.85
IsValidFunction · 0.85
GetWinsockAddrFunction · 0.70

Tested by

no test coverage detected