State of one operation, kept by the caller. More...
#include <iocp.hpp>
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. | |
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.