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

Method Test

library/cpp/netliba/v12/net_test.cpp:108–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 }
107
108 bool TPortUnreachableTester::Test(float deltaT) {
109 if (!ConnectOk)
110 return false;
111 if (S.IsHostUnreachable())
112 return false;
113 TimePassed += deltaT;
114 if (TimePassed > PING_DELAY) {
115 TimePassed = 0;
116 S.SendEmptyPacket();
117 }
118 return true;
119 }
120
121}

Callers 1

UpdateAliveMethod · 0.45

Calls 2

IsHostUnreachableMethod · 0.45
SendEmptyPacketMethod · 0.45

Tested by

no test coverage detected