AioReaderInterface Class Reference

#include <network_ioservice.h>

Inheritance diagram for AioReaderInterface:

Detailed Description

A reader that can receive asynchronous read notifications from an AioService.

Public Member Functions

MAXON_METHOD Result< void > NotifyForRead (SocketT sockfd, Result< void > result)
 

Private Member Functions

 MAXON_INTERFACE (AioReaderInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interface.aioreader")
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( AioReaderInterface  ,
MAXON_REFERENCE_NORMAL  ,
"net.maxon.interface.aioreader"   
)
private

◆ NotifyForRead()

MAXON_METHOD Result<void> NotifyForRead ( SocketT  sockfd,
Result< void >  result 
)

Event callback to signal when a non-blocking read operation is (likely) possible. This function is never called concurrently.

Parameters
[in]sockfdThe socket handle ready for reading.
[in]resultAn error if an operation registered by this reader failed.
Returns
An error if handling the event failed.