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 std::string &ipaddr, int aport, unsigned long maxtime, const std::string &connectbindip)
 
virtual void OnConnected ()
 
virtual void OnTimeout ()
 
- Public Member Functions inherited from StreamSocket
IOHookGetIOHook () const
 
void AddIOHook (IOHook *hook)
 
void DelIOHook ()
 
void DoWrite ()
 
void SetError (const std::string &err)
 
const std::string & getError () const
 
void WriteData (const std::string &data)
 
bool GetNextLine (std::string &line, char delim='\n')
 
size_t getSendQSize () const
 
SendQueueGetSendQ ()
 
virtual void Close ()
 
virtual 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 Attributes inherited from BufferedSocket
SocketTimeoutTimeout
 
BufferedSocketState state
 
- Protected Member Functions inherited from BufferedSocket
BufferedSocketError BeginConnect (const irc::sockets::sockaddrs &dest, const irc::sockets::sockaddrs &bind, unsigned long timeout)
 
BufferedSocketError BeginConnect (const std::string &ipaddr, int aport, unsigned long maxtime, const std::string &connectbindip)
 
- Protected Attributes inherited from StreamSocket
std::string recvq
 
- Protected Attributes inherited from EventHandler
int fd
 

Member Function Documentation

◆ OnDataReady()

void ThreadSignalSocket::OnDataReady ( )
inlinevirtual

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

Implements BufferedSocket.

◆ OnError()

void ThreadSignalSocket::OnError ( BufferedSocketError  e)
inlinevirtual

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

Implements StreamSocket.

◆ OnEventHandlerError()

void ThreadSignalSocket::OnEventHandlerError ( int  errornum)
inlinevirtual

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

Parameters
errornumError code

Reimplemented from EventHandler.

◆ OnEventHandlerRead()

void ThreadSignalSocket::OnEventHandlerRead ( )
inlinevirtual

Called by the socket engine in case of a read event

Implements EventHandler.

◆ OnEventHandlerWrite()

void ThreadSignalSocket::OnEventHandlerWrite ( )
inlinevirtual

Called by the socket engine on a write event

Reimplemented from BufferedSocket.


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