| 542 | } |
| 543 | |
| 544 | const 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 | |
| 551 | static ProtocolType FindProtocolOfHandler(const InputMessageHandler& h) { |
| 552 | std::vector<std::pair<ProtocolType, Protocol> > vec; |
no outgoing calls
no test coverage detected