AioReaderInterface Class Reference

#include <network_ioservice.h>

Inheritance diagram for AioReaderInterface:

详细描述

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

公共成员函数

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

私有成员函数

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

成员函数文档编制

◆  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.

参数
[in] sockfd The socket handle ready for reading.
[in] result An error if an operation registered by this reader failed.
返回
An error if handling the event failed.