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

Method TPortUnreachableTester

library/cpp/netliba/v12/net_test.cpp:84–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 const float PING_DELAY = 0.5f;
83
84 TPortUnreachableTester::TPortUnreachableTester()
85 : TimePassed(0)
86 , ConnectOk(false)
87
88 {
89 S.Open(0);
90 if (S.IsValid()) {
91 AtomicAdd(ActivePortTestersCount, 1);
92 }
93 }
94
95 void TPortUnreachableTester::Connect(const TUdpAddress& addr) {
96 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