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

Public Member Functions

 ThreadSignalSocket (SocketThread *p, int recvfd, int sendfd)
void Notify ()
void OnEventHandlerRead () CXX11_OVERRIDE
void OnEventHandlerWrite () CXX11_OVERRIDE
void OnEventHandlerError (int errcode) CXX11_OVERRIDE
 ThreadSignalSocket (SocketThread *t, int newfd)
void OnDataReady ()
void OnError (BufferedSocketError)
- Public Member Functions inherited from BufferedSocket
 BufferedSocket (int newfd)
void DoConnect (const irc::sockets::sockaddrs &dest, const irc::sockets::sockaddrs &bind, unsigned int maxtime)
virtual void OnConnected ()
virtual void OnTimeout ()
- Public Member Functions inherited from StreamSocket
 StreamSocket (Type sstype=SS_UNKNOWN)
IOHookGetIOHook () const
void AddIOHook (IOHook *hook)
void DelIOHook ()
void DoWrite ()
void SetError (const std::string &err)
const std::string & getError () const
virtual bool OnSetEndPoint (const irc::sockets::sockaddrs &local, const irc::sockets::sockaddrs &remote)
void WriteData (const std::string &data)
bool GetNextLine (std::string &line, char delim='\n')
size_t getSendQSize () const
SendQueueGetSendQ ()
virtual void Close ()
void Close (bool writeblock)
CullResult cull () CXX11_OVERRIDE
IOHookGetModHook (Module *mod) const
- Public Member Functions inherited from EventHandler
int GetFd () const
int GetEventMask () const
void SetFd (int FD)
 EventHandler ()
virtual ~EventHandler ()

Additional Inherited Members

- Public Types inherited from StreamSocket
enum  Type { SS_UNKNOWN, SS_USER }
- Public Attributes inherited from BufferedSocket
BufferedSocketState state
- Public Attributes inherited from StreamSocket
const Type type
- Protected Member Functions inherited from BufferedSocket
BufferedSocketError BeginConnect (const irc::sockets::sockaddrs &dest, const irc::sockets::sockaddrs &bind, unsigned int timeout)
- Protected Attributes inherited from StreamSocket
std::string recvq
- Protected Attributes inherited from EventHandler
int fd

Member Function Documentation

◆ OnDataReady()

void ThreadSignalSocket::OnDataReady ( )

When there is data waiting to be read on a socket, the OnDataReady() method is called.

Implements BufferedSocket.

◆ OnError()

void ThreadSignalSocket::OnError ( BufferedSocketError  e)

Called when the socket gets an error from socket engine or IO hook

Implements StreamSocket.

◆ OnEventHandlerError()

void ThreadSignalSocket::OnEventHandlerError ( int  errornum)

Called by the socket engine in case of an error event. The default implementation does nothing.

errornumError code

Reimplemented from EventHandler.

◆ OnEventHandlerRead()

void ThreadSignalSocket::OnEventHandlerRead ( )

Called by the socket engine in case of a read event

Implements EventHandler.

◆ OnEventHandlerWrite()

void ThreadSignalSocket::OnEventHandlerWrite ( )

Called by the socket engine on a write event

Reimplemented from BufferedSocket.

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