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

Function ProtocolForMessage

library/cpp/neh/neh.cpp:90–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 };
89
90 inline IProtocol* ProtocolForMessage(const TMessage& msg) {
91 return ProtocolFactory()->Protocol(TStringBuf(msg.Addr).Before(':'));
92 }
93}
94
95NNeh::TMessage NNeh::TMessage::FromString(const TStringBuf req) {

Callers 1

RequestMethod · 0.85

Calls 2

ProtocolMethod · 0.80
BeforeMethod · 0.80

Tested by

no test coverage detected