|
join 1.0
lightweight network framework library
|
completion handler interface class. More...
#include <proactor.hpp>

Public Member Functions | |
| CompletionHandler ()=default | |
| create instance. | |
| CompletionHandler (const CompletionHandler &other)=default | |
| copy constructor. | |
| CompletionHandler & | operator= (const CompletionHandler &other)=default |
| copy assignment operator. | |
| CompletionHandler (CompletionHandler &&other)=default | |
| move constructor. | |
| CompletionHandler & | operator= (CompletionHandler &&other)=default |
| move assignment operator. | |
| virtual | ~CompletionHandler ()=default |
| destroy instance. | |
Protected Member Functions | |
| virtual void | onComplete (IoOperation &op, int result) |
| method called when an operation completes successfully. | |
| virtual void | onCancel (IoOperation &op, int result) |
| method called when an operation is cancelled. | |
Friends | |
| class | join::BasicProactor |
| friendship with proactor. | |
completion handler interface class.
|
default |
create instance.
|
default |
copy constructor.
| other | other object to copy. |
|
default |
move constructor.
| other | other object to move. |
|
virtualdefault |
destroy instance.
|
inlineprotectedvirtual |
method called when an operation is cancelled.
| op | cancelled operation. |
| result | -ECANCELED, or other negative errno on failure. |
Reimplemented in HybridProactorTest, join::BasicAsyncSocket< Protocol, Proactor, OpCount >, join::BasicAsyncSocket< Protocol, BasicProactor, 16 >, join::BasicAsyncSocket< Protocol, BasicProactor, OpCount >, join::BasicAsyncStreamAcceptor< Protocol, Proactor >, ProactorTest, and SqpollProactorTest.
|
inlineprotectedvirtual |
method called when an operation completes successfully.
| op | completed operation, left idle when a multishot ended and can be resubmitted. |
| result | number of bytes transferred, operation-specific value, or negative errno on failure. |
Reimplemented in HybridProactorTest, join::BasicAsyncSocket< Protocol, Proactor, OpCount >, join::BasicAsyncSocket< Protocol, BasicProactor, 16 >, join::BasicAsyncSocket< Protocol, BasicProactor, OpCount >, join::BasicAsyncStreamAcceptor< Protocol, Proactor >, ProactorTest, and SqpollProactorTest.
|
default |
move assignment operator.
| other | other object to move. |
|
default |
copy assignment operator.
| other | other object to copy. |
|
friend |
friendship with proactor.