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

MsSQLListener Class Reference

Inheritance diagram for MsSQLListener:

Inheritance graph
[legend]
Collaboration diagram for MsSQLListener:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MsSQLListener (ModuleMsSQL *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

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

Detailed Description

Definition at line 82 of file m_mssql.cpp.


Constructor & Destructor Documentation

MsSQLListener::MsSQLListener ModuleMsSQL P,
InspIRCd Instance,
int  port,
const std::string addr
[inline]
 

Definition at line 90 of file m_mssql.cpp.

References sock_us, and uslen.


Member Function Documentation

int MsSQLListener::GetPort  )  [inline]
 

Get port number for socket.

Reimplemented from ListenSocketBase.

Definition at line 105 of file m_mssql.cpp.

References sock_us.

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

virtual void MsSQLListener::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 99 of file m_mssql.cpp.


Member Data Documentation

FileReader* MsSQLListener::index [private]
 

Definition at line 87 of file m_mssql.cpp.

ModuleMsSQL* MsSQLListener::Parent [private]
 

Definition at line 84 of file m_mssql.cpp.

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

Reimplemented from ListenSocketBase.

Definition at line 85 of file m_mssql.cpp.

Referenced by GetPort(), and MsSQLListener().

socklen_t MsSQLListener::uslen [private]
 

Definition at line 86 of file m_mssql.cpp.

Referenced by MsSQLListener().


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