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

Method TRequester

library/cpp/neh/multi.cpp:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 class TRequester: public IRequester {
14 public:
15 inline TRequester(const TListenAddrs& addrs, IOnRequest* cb) {
16 for (const auto& addr : addrs) {
17 TParsedLocation loc(addr);
18 IRequesterRef& req = R_[ToString(loc.Scheme) + ToString(loc.GetPort())];
19
20 if (!req) {
21 req = ProtocolFactory()->Protocol(loc.Scheme)->CreateRequester(cb, loc);
22 }
23 }
24 }
25
26 private:
27 typedef THashMap<TString, IRequesterRef> TRequesters;

Callers

nothing calls this directly

Calls 4

ProtocolMethod · 0.80
ToStringFunction · 0.50
GetPortMethod · 0.45
CreateRequesterMethod · 0.45

Tested by

no test coverage detected