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

Reads and consumes packets from a socket. More...

Public Types

using ReadCallback = consumer< SocketOperationCode >
 

Public Member Functions

virtual ~SocketReader ()=default
 
virtual void read (const ReadCallback &callback)=0
 Reads and consumes one or more packets and calls callback on completion. More...
 

Detailed Description

Reads and consumes packets from a socket.

Member Typedef Documentation

◆ ReadCallback

Constructor & Destructor Documentation

◆ ~SocketReader()

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

Member Function Documentation

◆ read()

virtual void catapult::ionet::SocketReader::read ( const ReadCallback callback)
pure virtual

Reads and consumes one or more packets and calls callback on completion.


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