InspIRCd  2.0
 All Classes Namespaces Functions Variables Typedefs Enumerations
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
ModuleGetIOHook ()
 
void AddIOHook (Module *m)
 
void DelIOHook ()
 
virtual void HandleEvent (EventType et, int errornum=0)
 
virtual void DoRead ()
 
virtual 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
 
virtual void Close ()
 
virtual CullResult cull ()
 
- 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

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
void UserIOHandler::OnDataReady ( )
virtual

Called when new data is present in recvq

Implements StreamSocket.

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: