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

Public Member Functions | |
| EventHandler ()=default | |
| create instance. | |
| virtual | ~EventHandler ()=default |
| destroy instance. | |
| virtual int | handle () const noexcept=0 |
| get native handle. | |
Protected Member Functions | |
| virtual void | onReceive () |
| method called when data are ready to be read on handle. | |
| virtual void | onClose () |
| method called when handle is closed. | |
| virtual void | onError () |
| method called when an error occured on handle. | |
Friends | |
| class | Reactor |
| friendship with reactor. | |
Event handler interface class.
|
default |
create instance.
|
virtualdefault |
destroy instance.
|
pure virtualnoexcept |
get native handle.
Implemented in join::BasicSocket< Protocol >, join::BasicStreamAcceptor< Protocol >, join::BasicTimer< ClockPolicy >, and ReactorTest.
|
inlineprotectedvirtual |
method called when handle is closed.
Reimplemented in ReactorTest.
|
inlineprotectedvirtual |
method called when an error occured on handle.
Reimplemented in ReactorTest.
|
inlineprotectedvirtual |
method called when data are ready to be read on handle.
Reimplemented in join::BasicTimer< ClockPolicy >, and ReactorTest.
|
friend |
friendship with reactor.