Anope IRC Services  Version 2.0
Public Member Functions | Data Fields | Private Attributes
HTTPProvider Class Referenceabstract

#include <httpd.h>

Inheritance diagram for HTTPProvider:
Inheritance graph
[legend]
Collaboration diagram for HTTPProvider:
Collaboration graph
[legend]

Public Member Functions

 HTTPProvider (Module *c, const Anope::string &n, const Anope::string &i, const unsigned short p, bool s)
 
const Anope::stringGetIP () const
 
unsigned short GetPort () const
 
bool IsSSL () const
 
virtual bool RegisterPage (HTTPPage *page)=0
 
virtual void UnregisterPage (HTTPPage *page)=0
 
virtual HTTPPageFindPage (const Anope::string &name)=0
 
- Public Member Functions inherited from ListenSocket
 ListenSocket (const Anope::string &bindip, int port, bool ipv6)
 
virtual ~ListenSocket ()
 
bool ProcessRead ()
 
virtual ClientSocketOnAccept (int fd, const sockaddrs &addr)=0
 
- Public Member Functions inherited from Socket
 Socket ()
 
 Socket (int sock, bool ipv6=false, int type=SOCK_STREAM)
 
virtual ~Socket ()
 
int GetFD () const
 
bool IsIPv6 () const
 
bool SetBlocking (bool state)
 
void Bind (const Anope::string &ip, int port=0)
 
virtual bool Process ()
 
virtual bool ProcessWrite ()
 
virtual void ProcessError ()
 
- Public Member Functions inherited from Service
 Service (Module *o, const Anope::string &t, const Anope::string &n)
 
virtual ~Service ()
 
void Register ()
 
void Unregister ()
 
- Public Member Functions inherited from Base
 Base ()
 
virtual ~Base ()
 
void AddReference (ReferenceBase *r)
 
void DelReference (ReferenceBase *r)
 

Data Fields

Anope::string ext_ip
 
std::vector< Anope::stringext_headers
 
- Data Fields inherited from Socket
std::bitset< SF_SIZEflags
 
sockaddrs bindaddr
 
SocketIOio
 
- Data Fields inherited from Service
Moduleowner
 
Anope::string type
 
Anope::string name
 

Private Attributes

Anope::string ip
 
unsigned short port
 
bool ssl
 

Additional Inherited Members

- Static Public Member Functions inherited from Service
static ServiceFindService (const Anope::string &t, const Anope::string &n)
 
static std::vector< Anope::stringGetServiceKeys (const Anope::string &t)
 
static void AddAlias (const Anope::string &t, const Anope::string &n, const Anope::string &v)
 
static void DelAlias (const Anope::string &t, const Anope::string &n)
 
- Protected Attributes inherited from Socket
int sock
 
bool ipv6
 

Detailed Description

Definition at line 130 of file httpd.h.

Constructor & Destructor Documentation

HTTPProvider::HTTPProvider ( Module c,
const Anope::string n,
const Anope::string i,
const unsigned short  p,
bool  s 
)
inline

Definition at line 139 of file httpd.h.

Member Function Documentation

virtual HTTPPage* HTTPProvider::FindPage ( const Anope::string name)
pure virtual

Implemented in MyHTTPProvider.

Referenced by MyHTTPClient::Read().

const Anope::string& HTTPProvider::GetIP ( ) const
inline

Definition at line 141 of file httpd.h.

References ip.

Referenced by HTTPD::OnReload().

unsigned short HTTPProvider::GetPort ( ) const
inline

Definition at line 146 of file httpd.h.

References port.

Referenced by HTTPD::OnReload().

bool HTTPProvider::IsSSL ( ) const
inline

Definition at line 151 of file httpd.h.

References ssl.

Referenced by HTTPD::OnModuleLoad(), WebCPanel::Logout::OnRequest(), and WebpanelRequest::OnSuccess().

virtual bool HTTPProvider::RegisterPage ( HTTPPage page)
pure virtual

Implemented in MyHTTPProvider.

virtual void HTTPProvider::UnregisterPage ( HTTPPage page)
pure virtual

Implemented in MyHTTPProvider.

Field Documentation

std::vector<Anope::string> HTTPProvider::ext_headers

Definition at line 137 of file httpd.h.

Referenced by HTTPD::OnReload(), and MyHTTPClient::Serve().

Anope::string HTTPProvider::ext_ip

Definition at line 136 of file httpd.h.

Referenced by HTTPD::OnReload(), and MyHTTPClient::Serve().

Anope::string HTTPProvider::ip
private

Definition at line 132 of file httpd.h.

Referenced by GetIP().

unsigned short HTTPProvider::port
private

Definition at line 133 of file httpd.h.

Referenced by GetPort().

bool HTTPProvider::ssl
private

Definition at line 134 of file httpd.h.

Referenced by IsSSL().


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