Anope IRC Services  Version 2.0
Public Member Functions | Protected Member Functions
HTTPClient Class Referenceabstract

#include <httpd.h>

Inheritance diagram for HTTPClient:
Inheritance graph
Collaboration diagram for HTTPClient:
Collaboration graph

Public Member Functions

 HTTPClient (ListenSocket *l, int f, const sockaddrs &a)
virtual const Anope::string GetIP ()
virtual void SendError (HTTPError err, const Anope::string &msg)=0
virtual void SendReply (HTTPReply *)=0
- Public Member Functions inherited from ClientSocket
 ClientSocket (ListenSocket *ls, const sockaddrs &addr)
bool Process () anope_override
void ProcessError () anope_override
virtual void OnAccept ()
virtual void OnError (const Anope::string &error)
- 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)
- Public Member Functions inherited from BinarySocket
 BinarySocket ()
virtual ~BinarySocket ()
bool ProcessRead () anope_override
bool ProcessWrite () anope_override
virtual void Write (const char *buffer, size_t l)
void Write (const char *message,...)
void Write (const Anope::string &message)
virtual bool Read (const char *buffer, size_t l)
- Public Member Functions inherited from Base
 Base ()
virtual ~Base ()
void AddReference (ReferenceBase *r)
void DelReference (ReferenceBase *r)

Protected Member Functions

void WriteClient (const Anope::string &message)

Additional Inherited Members

- Data Fields inherited from ClientSocket
sockaddrs clientaddr
- Data Fields inherited from Socket
std::bitset< SF_SIZEflags
sockaddrs bindaddr
- Protected Attributes inherited from Socket
int sock
bool ipv6
- Protected Attributes inherited from BinarySocket
std::deque< DataBlock * > write_buffer

Detailed Description

Definition at line 110 of file httpd.h.

Constructor & Destructor Documentation

HTTPClient::HTTPClient ( ListenSocket l,
int  f,
const sockaddrs a 

Definition at line 119 of file httpd.h.

Member Function Documentation

virtual const Anope::string HTTPClient::GetIP ( )

Reimplemented in MyHTTPClient.

Definition at line 121 of file httpd.h.

References sockaddrs::addr(), and ClientSocket::clientaddr.

Referenced by Panel::GetNickFromSession(), and WebpanelRequest::OnSuccess().

virtual void HTTPClient::SendError ( HTTPError  err,
const Anope::string msg 
pure virtual
virtual void HTTPClient::SendReply ( HTTPReply )
pure virtual
void HTTPClient::WriteClient ( const Anope::string message)

Definition at line 113 of file httpd.h.

References BinarySocket::Write().

Referenced by MyHTTPClient::SendReply().

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