Anope IRC Services  Version 2.0
Data Structures | Public Member Functions
ProxyCallbackListener Class Reference
Inheritance diagram for ProxyCallbackListener:
Inheritance graph
[legend]
Collaboration diagram for ProxyCallbackListener:
Collaboration graph
[legend]

Data Structures

class  ProxyCallbackClient
 

Public Member Functions

 ProxyCallbackListener (const Anope::string &b, int p)
 
ClientSocketOnAccept (int fd, const sockaddrs &addr) anope_override
 
- Public Member Functions inherited from ListenSocket
 ListenSocket (const Anope::string &bindip, int port, bool ipv6)
 
virtual ~ListenSocket ()
 
bool ProcessRead ()
 
- 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 ()
 

Additional Inherited Members

- Data Fields inherited from Socket
std::bitset< SF_SIZEflags
 
sockaddrs bindaddr
 
SocketIOio
 
- Protected Attributes inherited from Socket
int sock
 
bool ipv6
 

Detailed Description

Definition at line 23 of file m_proxyscan.cpp.

Constructor & Destructor Documentation

ProxyCallbackListener::ProxyCallbackListener ( const Anope::string b,
int  p 
)
inline

Definition at line 44 of file m_proxyscan.cpp.

Member Function Documentation

ClientSocket* ProxyCallbackListener::OnAccept ( int  fd,
const sockaddrs addr 
)
inlinevirtual

Called when a connection is accepted

Parameters
fdThe FD for the new connection
addrThe sockaddr for where the connection came from
Returns
The new socket

Implements ListenSocket.

Definition at line 48 of file m_proxyscan.cpp.


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