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

MySQLListener Class Reference

Spawn sockets from a listener. More...

Inheritance diagram for MySQLListener:

Inheritance graph
[legend]
Collaboration diagram for MySQLListener:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MySQLListener (ModuleSQL *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

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

Detailed Description

Spawn sockets from a listener.

Definition at line 707 of file m_mysql.cpp.


Constructor & Destructor Documentation

MySQLListener::MySQLListener ModuleSQL P,
InspIRCd Instance,
int  port,
const std::string addr
[inline]
 

Definition at line 715 of file m_mysql.cpp.

References sock_us, and uslen.


Member Function Documentation

int MySQLListener::GetPort  )  [inline]
 

Get port number for socket.

Reimplemented from ListenSocketBase.

Definition at line 730 of file m_mysql.cpp.

References sock_us.

Referenced by ModuleSQL::ModuleSQL(), and DispatcherThread::Run().

virtual void MySQLListener::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 724 of file m_mysql.cpp.


Member Data Documentation

FileReader* MySQLListener::index [private]
 

Definition at line 712 of file m_mysql.cpp.

ModuleSQL* MySQLListener::Parent [private]
 

Definition at line 709 of file m_mysql.cpp.

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

Reimplemented from ListenSocketBase.

Definition at line 710 of file m_mysql.cpp.

Referenced by GetPort(), and MySQLListener().

socklen_t MySQLListener::uslen [private]
 

Definition at line 711 of file m_mysql.cpp.

Referenced by MySQLListener().


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