CatapultServer  v0.5.0.1 (Elephant)
catapult::net::PacketIoPickerContainer Class Reference

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::NodePacketIoPairpickMatching (const utils::TimeSpan &ioDuration, ionet::NodeRoles roles) const
 

Private Attributes

std::vector< std::pair< ionet::NodeRoles, PacketIoPicker * > > m_pickers
 

Detailed Description

A collection of packet io pickers.

Member Function Documentation

◆ insert()

void catapult::net::PacketIoPickerContainer::insert ( PacketIoPicker picker,
ionet::NodeRoles  roles 
)

Inserts picker, which is compatible with the specified roles, into this container.

◆ pickMatching()

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.

Here is the caller graph for this function:

Member Data Documentation

◆ m_pickers

std::vector<std::pair<ionet::NodeRoles, PacketIoPicker*> > catapult::net::PacketIoPickerContainer::m_pickers
private

The documentation for this class was generated from the following files: