CatapultServer  v0.5.0.1 (Elephant)
catapult::net::PacketReaders Class Referenceabstract

Manages a collection of connections that receive data from external nodes. More...

Inheritance diagram for catapult::net::PacketReaders:
Collaboration diagram for catapult::net::PacketReaders:

Public Types

using AcceptCallback = consumer< const PeerConnectResult & >
 

Public Member Functions

virtual size_t numActiveReaders () const =0
 Gets the number of active readers. More...
 
virtual void accept (const ionet::AcceptedPacketSocketInfo &socketInfo, const AcceptCallback &callback)=0
 Accepts a connection represented by socketInfo and calls callback on completion. More...
 
virtual void shutdown ()=0
 Shuts down all connections. More...
 
- Public Member Functions inherited from catapult::net::ConnectionContainer
virtual ~ConnectionContainer ()=default
 
virtual size_t numActiveConnections () const =0
 Gets the number of active connections (including pending connections). More...
 
virtual utils::KeySet identities () const =0
 Gets the identities of active connections. More...
 
virtual bool closeOne (const Key &identityKey)=0
 Closes any active connections to the node identified by identityKey. More...
 

Detailed Description

Manages a collection of connections that receive data from external nodes.

Member Typedef Documentation

◆ AcceptCallback

Member Function Documentation

◆ accept()

virtual void catapult::net::PacketReaders::accept ( const ionet::AcceptedPacketSocketInfo socketInfo,
const AcceptCallback callback 
)
pure virtual

Accepts a connection represented by socketInfo and calls callback on completion.

◆ numActiveReaders()

virtual size_t catapult::net::PacketReaders::numActiveReaders ( ) const
pure virtual

Gets the number of active readers.

◆ shutdown()

virtual void catapult::net::PacketReaders::shutdown ( )
pure virtual

Shuts down all connections.


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