| 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; |
nothing calls this directly
no test coverage detected