InspIRCd  2.0
Public Member Functions | List of all members
ThreadSignalSocket Class Reference
Inheritance diagram for ThreadSignalSocket:
EventHandler classbase

Public Member Functions

 ThreadSignalSocket (SocketThread *p, int recvfd, int sendfd)
void Notify ()
void HandleEvent (EventType et, int errornum)
 ThreadSignalSocket (SocketThread *t, int newfd)
void OnDataReady ()
void OnError (BufferedSocketError)
- Public Member Functions inherited from EventHandler
int GetFd () const
int GetEventMask () const
void SetFd (int FD)
 EventHandler ()
virtual ~EventHandler ()
- Public Member Functions inherited from classbase
virtual CullResult cull ()

Additional Inherited Members

- Protected Attributes inherited from EventHandler
int fd

Member Function Documentation

◆ HandleEvent()

void ThreadSignalSocket::HandleEvent ( EventType  et,
int  errornum 

Process an I/O event. You MUST implement this function in your derived class, and it will be called whenever read or write events are received.

eteither one of EVENT_READ for read events, EVENT_WRITE for write events and EVENT_ERROR for error events.
errornumThe error code which goes with an EVENT_ERROR.

Implements EventHandler.

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