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

Method Protocol

library/cpp/neh/factory.cpp:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 }
38
39 IProtocol* Protocol(const TStringBuf& proto) override {
40 const_iterator it = find(proto);
41
42 if (it == end()) {
43 ythrow yexception() << "unsupported scheme " << proto;
44 }
45
46 return it->second;
47 }
48
49 void Register(IProtocol* proto) override {
50 (*this)[proto->Scheme()] = proto;

Callers 3

TRequesterMethod · 0.80
ProtocolForMessageFunction · 0.80
SetProtocolOptionMethod · 0.80

Calls 2

findFunction · 0.50
endFunction · 0.50

Tested by

no test coverage detected