MCPcopy Create free account
hub / github.com/bcndev/bytecoin / levin_pair

Function levin_pair

src/p2p/P2PProtocolBasic.cpp:25–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24template<typename Cmd>
25std::pair<std::pair<uint32_t, LevinProtocol::CommandType>, std::pair<P2PProtocolBasic::LevinHandlerFunction, size_t>>
26levin_pair(void (P2PProtocolBasic::*handler)(Cmd &&)) {
27 return std::make_pair(std::make_pair(Cmd::ID, static_cast<LevinProtocol::CommandType>(Cmd::TYPE)),
28 std::make_pair(levin_method(handler), Cmd::MAX_SIZE));
29}
30
31const std::map<std::pair<uint32_t, LevinProtocol::CommandType>,
32 std::pair<P2PProtocolBasic::LevinHandlerFunction, size_t>>

Callers

nothing calls this directly

Calls 1

levin_methodFunction · 0.85

Tested by

no test coverage detected