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

Method Test

library/cpp/netliba/v6/net_test.cpp:38–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 bool TPortUnreachableTester::Test(float deltaT) {
39 if (!ConnectOk)
40 return false;
41 if (s.IsHostUnreachable())
42 return false;
43 TimePassed += deltaT;
44 if (TimePassed > PING_DELAY) {
45 TimePassed = 0;
46 s.SendEmptyPacket();
47 }
48 return true;
49 }
50}

Callers 1

UpdateAliveMethod · 0.45

Calls 2

IsHostUnreachableMethod · 0.45
SendEmptyPacketMethod · 0.45

Tested by

no test coverage detected