AioWriterInterface Class Reference

#include <network_ioservice.h>

Inheritance diagram for AioWriterInterface:

Detailed Description

A writer that can receive asynchronous write notifications from an AioService.

Public Member Functions

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

Private Member Functions

 MAXON_INTERFACE (AioWriterInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interface.aiowriter")
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( AioWriterInterface  ,
MAXON_REFERENCE_NORMAL  ,
"net.maxon.interface.aiowriter"   
)
private

◆ NotifyForWrite()

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

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

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