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

HttpListener Class Reference

Spawn HTTP sockets from a listener. More...

Inheritance diagram for HttpListener:

Inheritance graph
[legend]
Collaboration diagram for HttpListener:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HttpListener (InspIRCd *Instance, FileReader *idx, 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.

Private Attributes

FileReaderindex

Detailed Description

Spawn HTTP sockets from a listener.

Definition at line 346 of file m_httpd.cpp.


Constructor & Destructor Documentation

HttpListener::HttpListener InspIRCd Instance,
FileReader idx,
int  port,
const std::string addr
[inline]
 

Definition at line 351 of file m_httpd.cpp.

References index.


Member Function Documentation

virtual void HttpListener::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 356 of file m_httpd.cpp.

References index, and ListenSocketBase::ServerInstance.


Member Data Documentation

FileReader* HttpListener::index [private]
 

Definition at line 348 of file m_httpd.cpp.

Referenced by HttpListener(), and OnAcceptReady().


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