COROIO: NNet::TIOCp::TOperation Struct Reference
COROIO
Loading...
Searching...
No Matches
NNet::TIOCp::TOperation Struct Reference

State of one operation, kept by the caller. More...

#include <iocp.hpp>

Inheritance diagram for NNet::TIOCp::TOperation:
NNet::NDetail::TOperationState

Friends

class TIOCp

Additional Inherited Members

Public Member Functions inherited from NNet::NDetail::TOperationState
 TOperationState (const TOperationState &)=delete
TOperationState & operator= (const TOperationState &)=delete
Public Attributes inherited from NNet::NDetail::TOperationState
THandle Handle
 Coroutine to resume, set by the caller before posting. Cleared when posting fails, the completion is delivered or the operation is cancelled, so it is set while the operation is pending.
int Result = 0
 Result of the completion, e.g. the number of bytes transferred.
unsigned Index = 0
 Position of the completion in TCompletions once taken; before that, whatever the poller keeps there.

Detailed Description

State of one operation, kept by the caller.

Set TOperation::Handle to the coroutine to resume before posting the operation; if posting throws, it is reset. The state is the operation's OVERLAPPED, so it must stay in place until WakeupReadyHandles() delivers the completion or Cancel() returns. The result of the completion is in TOperation::Result.


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