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

SQLiteListener Class Reference

Inheritance diagram for SQLiteListener:

Inheritance graph
[legend]
Collaboration diagram for SQLiteListener:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SQLiteListener (ModuleSQLite3 *P, InspIRCd *Instance, int port, const std::string &addr)
virtual void OnAcceptReady (const std::string &ipconnectedto, int nfd, const std::string &incomingip)
 Called when a new connection has successfully been accepted on this listener.
int GetPort ()
 Get port number for socket.

Private Attributes

ModuleSQLite3Parent
irc::sockets::insp_sockaddr sock_us
socklen_t uslen
FileReaderindex

Detailed Description

Definition at line 61 of file m_sqlite3.cpp.


Constructor & Destructor Documentation

SQLiteListener::SQLiteListener ModuleSQLite3 P,
InspIRCd Instance,
int  port,
const std::string addr
[inline]
 

Definition at line 69 of file m_sqlite3.cpp.

References sock_us, and uslen.


Member Function Documentation

int SQLiteListener::GetPort  )  [inline]
 

Get port number for socket.

Reimplemented from ListenSocketBase.

Definition at line 84 of file m_sqlite3.cpp.

References sock_us.

Referenced by ModuleSQLite3::ModuleSQLite3(), and SQLConn::SendNotify().

virtual void SQLiteListener::OnAcceptReady const std::string ipconnectedto,
int  nfd,
const std::string incomingip
[inline, virtual]
 

Called when a new connection has successfully been accepted on this listener.

Parameters:
ipconnectedto The IP address the connection arrived on
fd The file descriptor of the new connection
incomingip The IP from which the connection was made

Implements ListenSocketBase.

Definition at line 78 of file m_sqlite3.cpp.


Member Data Documentation

FileReader* SQLiteListener::index [private]
 

Definition at line 66 of file m_sqlite3.cpp.

ModuleSQLite3* SQLiteListener::Parent [private]
 

Definition at line 63 of file m_sqlite3.cpp.

irc::sockets::insp_sockaddr SQLiteListener::sock_us [private]
 

Reimplemented from ListenSocketBase.

Definition at line 64 of file m_sqlite3.cpp.

Referenced by GetPort(), and SQLiteListener().

socklen_t SQLiteListener::uslen [private]
 

Definition at line 65 of file m_sqlite3.cpp.

Referenced by SQLiteListener().


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