21#ifndef G_NET_EVENT_HANDLER_H
22#define G_NET_EVENT_HANDLER_H
80 static std::string
str( Reason ) ;
A class that encapsulates a network socket file descriptor and an associated windows event handle.
A base class for classes that have a file descriptor and handle asynchronous events from the event lo...
virtual void readEvent()
Called for a read event.
virtual void writeEvent()
Called for a write event.
virtual ~EventHandler()
Destructor.
EventHandler()
Constructor.
virtual void otherEvent(Reason)
Called for a socket-exception event, or a socket-close event on windows.
static std::string str(Reason)
Returns a printable description of the other-event reason.
void setDescriptor(Descriptor) noexcept
File descriptor setter. Used by the event loop.
Descriptor descriptor() const noexcept
File descriptor getter. Used by the event loop.