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

Public Member Functions

 UserIOHandler (LocalUser *me)
 
void OnDataReady ()
 
void OnError (BufferedSocketError error)
 
void AddWriteBuf (const std::string &data)
 
- Public Member Functions inherited from StreamSocket
IOHookGetIOHook () const
 
void AddIOHook (IOHook *hook)
 
void DelIOHook ()
 
void DoWrite ()
 
void OnEventHandlerRead () CXX11_OVERRIDE
 
void OnEventHandlerWrite () CXX11_OVERRIDE
 
void OnEventHandlerError (int errcode) CXX11_OVERRIDE
 
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 ()
 

Public Attributes

LocalUser *const user
 

Additional Inherited Members

- Protected Attributes inherited from StreamSocket
std::string recvq
 
- Protected Attributes inherited from EventHandler
int fd
 

Member Function Documentation

◆ AddWriteBuf()

void UserIOHandler::AddWriteBuf ( const std::string &  data)

Adds to the user's write buffer. You may add any amount of text up to this users sendq value, if you exceed the sendq value, the user will be removed, and further buffer adds will be dropped.

Parameters
dataThe data to add to the write buffer

◆ OnDataReady()

void UserIOHandler::OnDataReady ( )
virtual

Called when new data is present in recvq

Implements StreamSocket.

◆ OnError()

void UserIOHandler::OnError ( BufferedSocketError  e)
virtual

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

Implements StreamSocket.


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