21#ifndef G_NET_EVENT_EMITTER_H
22#define G_NET_EVENT_EMITTER_H
74 void reset() noexcept ;
A class that encapsulates a network socket file descriptor and an associated windows event handle.
An EventHandler and ExceptionSink tuple, with methods to raise an event and handle any exceptions.
void raiseWriteEvent(Descriptor)
Calls the EventHandler writeEvent() method.
void update(EventHandler *, ExceptionSink) noexcept
Sets the event handler and the exception sink.
EventHandler * handler() const
Returns the handler, as passed to the ctor.
void reset() noexcept
Resets the EventHandler so that the raise methods do nothing.
void raiseReadEvent(Descriptor)
Calls the EventHandler readEvent() method.
void disarm(ExceptionHandler *) noexcept
If the exception handler matches then reset it so that it is not called.
EventEmitter() noexcept
Default constructor.
void raiseOtherEvent(Descriptor, EventHandler::Reason)
Calls the EventHandler otherEvent() method.
ExceptionSink es() const
Returns the exception sink, as passed to the ctor.
A base class for classes that have a file descriptor and handle asynchronous events from the event lo...
An abstract interface for handling exceptions thrown out of event-loop callbacks (socket/future event...
A tuple containing an ExceptionHandler interface pointer and a bound 'exception source' pointer.