MCPcopy Create free account
hub / github.com/acl-dev/acl / direct

Method direct

lib_fiber/cpp/src/tcp_keeper.cpp:82–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82bool tcp_keeper::direct(const char* addr, bool& found)
83{
84 std::map<std::string, double>::iterator it;
85 thread_mutex_guard guard(*lock_);
86 it = addrs_.find(addr);
87 if (it == addrs_.end()) {
88 found = false;
89 return false;
90 }
91
92 found = true;
93 return it->second <= rtt_min_;
94}
95
96void tcp_keeper::remove(const char* addr)
97{

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected