CatapultServer
v0.5.0.1 (Elephant)
|
A collection of packet io pickers. More...
Public Member Functions | |
void | insert (PacketIoPicker &picker, ionet::NodeRoles roles) |
Inserts picker, which is compatible with the specified roles, into this container. More... | |
std::vector< ionet::NodePacketIoPair > | pickMatching (const utils::TimeSpan &ioDuration, ionet::NodeRoles roles) const |
Private Attributes | |
std::vector< std::pair< ionet::NodeRoles, PacketIoPicker * > > | m_pickers |
A collection of packet io pickers.
void catapult::net::PacketIoPickerContainer::insert | ( | PacketIoPicker & | picker, |
ionet::NodeRoles | roles | ||
) |
Inserts picker, which is compatible with the specified roles, into this container.
std::vector< ionet::NodePacketIoPair > catapult::net::PacketIoPickerContainer::pickMatching | ( | const utils::TimeSpan & | ioDuration, |
ionet::NodeRoles | roles | ||
) | const |
Retrieves a packet io pair around an active connection from each picker with compatible roles. After ioDuration elapses, the connections will timeout.
|
private |