The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

ResultNotifier Class Reference

Inheritance diagram for ResultNotifier:

Inheritance graph
[legend]
Collaboration diagram for ResultNotifier:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ResultNotifier (ModuleMsSQL *m, InspIRCd *SI, int newfd, char *ip)
virtual bool OnDataReady ()
 When there is data waiting to be read on a socket, the OnDataReady() method is called.
void Dispatch ()
 ResultNotifier (ModuleSQLite3 *m, InspIRCd *SI, int newfd, char *ip)
virtual bool OnDataReady ()
 When there is data waiting to be read on a socket, the OnDataReady() method is called.
void Dispatch ()

Private Attributes

ModuleMsSQLmod
ModuleSQLite3mod

Detailed Description

Definition at line 59 of file m_mssql.cpp.


Constructor & Destructor Documentation

ResultNotifier::ResultNotifier ModuleMsSQL m,
InspIRCd SI,
int  newfd,
char *  ip
[inline]
 

Definition at line 64 of file m_mssql.cpp.

ResultNotifier::ResultNotifier ModuleSQLite3 m,
InspIRCd SI,
int  newfd,
char *  ip
[inline]
 

Definition at line 43 of file m_sqlite3.cpp.


Member Function Documentation

void ResultNotifier::Dispatch  ) 
 

void ResultNotifier::Dispatch  ) 
 

Definition at line 899 of file m_mssql.cpp.

References mod, and ModuleMsSQL::SendQueue().

Referenced by OnDataReady().

virtual bool ResultNotifier::OnDataReady  )  [inline, virtual]
 

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

Within this method, you *MUST* call the Read() method to read any pending data. At its lowest level, this event is signalled by the core via the socket engine. If you return false from this function, the core removes your socket from its list and erases it from the socket engine, then calls BufferedSocket::Close() and deletes it.

Returns:
false to close the socket

Reimplemented from BufferedSocket.

Definition at line 47 of file m_sqlite3.cpp.

References Dispatch(), SocketEngine::Recv(), InspIRCd::SE, and BufferedSocket::ServerInstance.

virtual bool ResultNotifier::OnDataReady  )  [inline, virtual]
 

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

Within this method, you *MUST* call the Read() method to read any pending data. At its lowest level, this event is signalled by the core via the socket engine. If you return false from this function, the core removes your socket from its list and erases it from the socket engine, then calls BufferedSocket::Close() and deletes it.

Returns:
false to close the socket

Reimplemented from BufferedSocket.

Definition at line 68 of file m_mssql.cpp.

References Dispatch(), SocketEngine::Recv(), InspIRCd::SE, and BufferedSocket::ServerInstance.


Member Data Documentation

ModuleSQLite3* ResultNotifier::mod [private]
 

Definition at line 40 of file m_sqlite3.cpp.

ModuleMsSQL* ResultNotifier::mod [private]
 

Definition at line 61 of file m_mssql.cpp.

Referenced by Dispatch().


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