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

Method TPortUnreachableTester

library/cpp/netliba/v6/net_test.cpp:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 const float PING_DELAY = 0.5f;
13
14 TPortUnreachableTester::TPortUnreachableTester()
15 : TimePassed(0)
16 , ConnectOk(false)
17
18 {
19 s.Open(0);
20 if (s.IsValid()) {
21 AtomicAdd(ActivePortTestersCount, 1);
22 }
23 }
24
25 void TPortUnreachableTester::Connect(const TUdpAddress& addr) {
26 Y_ASSERT(IsValid());

Callers

nothing calls this directly

Calls 3

AtomicAddFunction · 0.50
OpenMethod · 0.45
IsValidMethod · 0.45

Tested by

no test coverage detected