MCPcopy Create free account
hub / github.com/apache/brpc / NameOfProtocol

Method NameOfProtocol

src/brpc/input_messenger.cpp:544–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544const char* InputMessenger::NameOfProtocol(int n) const {
545 if (n < 0 || (size_t)n >= _capacity || _handlers[n].parse == NULL) {
546 return "unknown"; // use lowercase to be consistent with valid names.
547 }
548 return _handlers[n].name;
549}
550
551static ProtocolType FindProtocolOfHandler(const InputMessageHandler& h) {
552 std::vector<std::pair<ProtocolType, Protocol> > vec;

Callers 2

DebugSocketMethod · 0.80
PrintConnectionsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected