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

ModuleHttpServer Class Reference

Inheritance diagram for ModuleHttpServer:

Inheritance graph
[legend]
Collaboration diagram for ModuleHttpServer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void ReadConfig ()
 ModuleHttpServer (InspIRCd *Me)
virtual const char * OnRequest (Request *request)
 Called whenever a Request class is sent to your module by another module.
virtual ~ModuleHttpServer ()
virtual Version GetVersion ()
 Returns the version number of a Module.

Private Attributes

std::vector< HttpServerSocket * > httpsocks

Detailed Description

Definition at line 382 of file m_httpd.cpp.


Constructor & Destructor Documentation

ModuleHttpServer::ModuleHttpServer InspIRCd Me  )  [inline]
 

Definition at line 413 of file m_httpd.cpp.

References ModuleManager::Attach(), I_OnRequest, InspIRCd::Modules, ReadConfig(), and Module::ServerInstance.

virtual ModuleHttpServer::~ModuleHttpServer  )  [inline, virtual]
 

Definition at line 431 of file m_httpd.cpp.

References InspIRCd::BufferedSocketCull(), SocketEngine::DelFd(), httpsocks, InspIRCd::SE, and Module::ServerInstance.


Member Function Documentation

virtual Version ModuleHttpServer::GetVersion  )  [inline, virtual]
 

Returns the version number of a Module.

The method should return a Version object with its version information assigned via Version::Version

Reimplemented from Module.

Definition at line 442 of file m_httpd.cpp.

References API_VERSION, VF_SERVICEPROVIDER, and VF_VENDOR.

virtual const char* ModuleHttpServer::OnRequest Request request  )  [inline, virtual]
 

Called whenever a Request class is sent to your module by another module.

Please see the documentation of Request::Send() for further information. The Request sent can always be assumed to be non-NULL, you should not change the request object or its data. Your method may return arbitary data in the char* result which the requesting module may be able to use for pre-determined purposes (e.g. the results of an SQL query, etc).

Parameters:
request The Request class being received

Reimplemented from Module.

Definition at line 421 of file m_httpd.cpp.

References claimed, Request::GetData(), HTTPDocument::GetDocument(), HTTPDocument::GetResponseCode(), HTTPDocument::headers, HttpServerSocket::Page(), and HTTPDocument::sock.

void ModuleHttpServer::ReadConfig  )  [inline]
 

Definition at line 387 of file m_httpd.cpp.

References FileReader::Exists(), httpsocks, and Module::ServerInstance.

Referenced by ModuleHttpServer().


Member Data Documentation

std::vector<HttpServerSocket*> ModuleHttpServer::httpsocks [private]
 

Definition at line 384 of file m_httpd.cpp.

Referenced by ReadConfig(), and ~ModuleHttpServer().


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