join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
join::EventHandler Class Referenceabstract

Event handler interface class. More...

#include <reactor.hpp>

Inheritance diagram for join::EventHandler:

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.
 

Detailed Description

Event handler interface class.

Constructor & Destructor Documentation

◆ EventHandler()

join::EventHandler::EventHandler ( )
default

create instance.

◆ ~EventHandler()

virtual join::EventHandler::~EventHandler ( )
virtualdefault

destroy instance.

Member Function Documentation

◆ handle()

virtual int join::EventHandler::handle ( ) const
pure virtualnoexcept

◆ onClose()

virtual void join::EventHandler::onClose ( )
inlineprotectedvirtual

method called when handle is closed.

Reimplemented in ReactorTest.

◆ onError()

virtual void join::EventHandler::onError ( )
inlineprotectedvirtual

method called when an error occured on handle.

Reimplemented in ReactorTest.

◆ onReceive()

virtual void join::EventHandler::onReceive ( )
inlineprotectedvirtual

method called when data are ready to be read on handle.

Reimplemented in join::BasicTimer< ClockPolicy >, and ReactorTest.

Friends And Related Symbol Documentation

◆ Reactor

friend class Reactor
friend

friendship with reactor.


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