Anope IRC Services  Version 2.0
Public Member Functions
ProxyCallbackListener::ProxyCallbackClient Class Reference
Inheritance diagram for ProxyCallbackListener::ProxyCallbackClient:
Inheritance graph
Collaboration diagram for ProxyCallbackListener::ProxyCallbackClient:
Collaboration graph

Public Member Functions

 ProxyCallbackClient (ListenSocket *l, int f, const sockaddrs &a)
void OnAccept () anope_override
bool ProcessWrite () anope_override
- Public Member Functions inherited from ClientSocket
 ClientSocket (ListenSocket *ls, const sockaddrs &addr)
bool Process () anope_override
void ProcessError () anope_override
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 BufferedSocket
 BufferedSocket ()
virtual ~BufferedSocket ()
bool ProcessRead () anope_override
const Anope::string GetLine ()
void Write (const char *message,...)
void Write (const Anope::string &message)
int ReadBufferLen () const
int WriteBufferLen () const

Additional Inherited Members

- Data Fields inherited from ClientSocket
sockaddrs clientaddr
- Data Fields inherited from Socket
std::bitset< SF_SIZEflags
sockaddrs bindaddr
- Protected Member Functions inherited from BufferedSocket
virtual void Write (const char *buffer, size_t l)
- Protected Attributes inherited from Socket
int sock
bool ipv6
- Protected Attributes inherited from BufferedSocket
Anope::string read_buffer
Anope::string write_buffer
int recv_len

Detailed Description

Definition at line 25 of file m_proxyscan.cpp.

Constructor & Destructor Documentation

ProxyCallbackListener::ProxyCallbackClient::ProxyCallbackClient ( ListenSocket l,
int  f,
const sockaddrs a 

Definition at line 28 of file m_proxyscan.cpp.

Member Function Documentation

void ProxyCallbackListener::ProxyCallbackClient::OnAccept ( )

Called when a client has been accepted() successfully.

Reimplemented from ClientSocket.

Definition at line 32 of file m_proxyscan.cpp.

References BufferedSocket::Write().

bool ProxyCallbackListener::ProxyCallbackClient::ProcessWrite ( )

Called when the socket is ready to be written to

true on success, false to drop this socket

Reimplemented from BufferedSocket.

Definition at line 37 of file m_proxyscan.cpp.

References Anope::string::empty(), BufferedSocket::ProcessWrite(), and BufferedSocket::write_buffer.

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