InspIRCd
3.0
|
Public Member Functions | |
UserIOHandler (LocalUser *me) | |
void | OnDataReady () CXX11_OVERRIDE |
bool | OnSetEndPoint (const irc::sockets::sockaddrs &local, const irc::sockets::sockaddrs &remote) CXX11_OVERRIDE |
void | OnError (BufferedSocketError error) CXX11_OVERRIDE |
void | AddWriteBuf (const std::string &data) |
void | SwapInternals (UserIOHandler &other) |
![]() | |
StreamSocket (Type sstype=SS_UNKNOWN) | |
IOHook * | GetIOHook () 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 |
SendQueue & | GetSendQ () |
virtual void | Close () |
void | Close (bool writeblock) |
CullResult | cull () CXX11_OVERRIDE |
IOHook * | GetModHook (Module *mod) const |
IOHook * | GetLastHook () const |
![]() | |
int | GetFd () const |
bool | HasFd () const |
int | GetEventMask () const |
void | SetFd (int FD) |
EventHandler () | |
virtual | ~EventHandler () |
Public Attributes | |
LocalUser *const | user |
![]() | |
const Type | type |
Additional Inherited Members | |
![]() | |
enum | Type { SS_UNKNOWN, SS_USER } |
![]() | |
void | SwapInternals (StreamSocket &other) |
![]() | |
void | SwapInternals (EventHandler &other) |
![]() | |
std::string | recvq |
![]() | |
int | fd |
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.
data | The data to add to the write buffer |
|
virtual |
Called when new data is present in recvq
Implements StreamSocket.
|
virtual |
Called when the socket gets an error from socket engine or IO hook
Implements StreamSocket.
|
virtual |
Called when the endpoint addresses are changed.
local | The new local endpoint. |
remote | The new remote endpoint. |
Reimplemented from StreamSocket.
void UserIOHandler::SwapInternals | ( | UserIOHandler & | other | ) |
Swaps the internals of this UserIOHandler with another one.
other | A UserIOHandler to swap internals with. |