Generic PacketsHandler that contains all specific packet handlers.
More...
#include <packets_handler.hpp>
Generic PacketsHandler that contains all specific packet handlers.
◆ getSpecificHandler() [1/2]
template<typename PacketHandlerType >
std::shared_ptr< PacketHandlerType > taraxa::network::tarcap::PacketsHandler::getSpecificHandler |
templated getSpecificHandler method for getting specific packet handler based on PacketHandlerType::kPacketType_
- Template Parameters
-
- Returns
- std::shared_ptr<PacketHandlerType>
◆ getSpecificHandler() [2/2]
Factory method for getting specific packet handler based on packet type.
- Note
- reference to pointer is returned, it is user's responsibility to decide if he makes a copy to independently control the lifetime of the object or not.
- Parameters
-
- Returns
- reference to std::shared_ptr<PacketsHandler>
◆ registerHandler()
template<typename PacketHandlerType , typename... Args>
void taraxa::network::tarcap::PacketsHandler::registerHandler |
( |
Args &&... |
args | ) |
|
Registers packet handler.
- Template Parameters
-
- Parameters
-
args | to be forwarded to the PacketHandlerType ctor |
◆ packets_handlers_
The documentation for this class was generated from the following files: