CatapultServer  v0.5.0.1 (Elephant)
catapult::ionet::BatchPacketReader Class Referenceabstract

An read-optimized interface for reading packets. More...

Inheritance diagram for catapult::ionet::BatchPacketReader:

Public Member Functions

virtual ~BatchPacketReader ()=default
 
virtual void readMultiple (const PacketIo::ReadCallback &callback)=0
 

Detailed Description

An read-optimized interface for reading packets.

Constructor & Destructor Documentation

◆ ~BatchPacketReader()

virtual catapult::ionet::BatchPacketReader::~BatchPacketReader ( )
virtualdefault

Member Function Documentation

◆ readMultiple()

virtual void catapult::ionet::BatchPacketReader::readMultiple ( const PacketIo::ReadCallback callback)
pure virtual

Reads and consumes all ready packets and calls callback on completion. On success, the read packets are passed to callback.

Note
A batch read operation will always result in the callback being called with a non-success result, which indicates the completion of the batch operation.

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