Anope IRC Services  Version 2.0
Public Member Functions
SOCKS5ProxyConnect Class Reference
Inheritance diagram for SOCKS5ProxyConnect:
Inheritance graph
[legend]
Collaboration diagram for SOCKS5ProxyConnect:
Collaboration graph
[legend]

Public Member Functions

 SOCKS5ProxyConnect (ProxyCheck &p, unsigned short po)
 
void OnConnect () anope_override
 
const Anope::string GetType () const anope_override
 
bool Read (const char *buffer, size_t l) anope_override
 
- Public Member Functions inherited from ProxyConnect
 ProxyConnect (ProxyCheck &p, unsigned short po)
 
 ~ProxyConnect ()
 
- Public Member Functions inherited from ConnectionSocket
void Connect (const Anope::string &TargetHost, int Port)
 
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 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)
 

Additional Inherited Members

- Data Fields inherited from ProxyConnect
ProxyCheck proxy
 
unsigned short port
 
time_t created
 
- Data Fields inherited from ConnectionSocket
sockaddrs conaddr
 
- Data Fields inherited from Socket
std::bitset< SF_SIZEflags
 
sockaddrs bindaddr
 
SocketIOio
 
- Static Public Attributes inherited from ProxyConnect
static std::set< ProxyConnect * > proxies
 
- Protected Member Functions inherited from ProxyConnect
void Ban ()
 
- Protected Attributes inherited from Socket
int sock
 
bool ipv6
 
- Protected Attributes inherited from BinarySocket
std::deque< DataBlock * > write_buffer
 

Detailed Description

Definition at line 141 of file m_proxyscan.cpp.

Constructor & Destructor Documentation

SOCKS5ProxyConnect::SOCKS5ProxyConnect ( ProxyCheck p,
unsigned short  po 
)
inline

Definition at line 144 of file m_proxyscan.cpp.

Member Function Documentation

const Anope::string SOCKS5ProxyConnect::GetType ( ) const
inlinevirtual

Implements ProxyConnect.

Definition at line 175 of file m_proxyscan.cpp.

void SOCKS5ProxyConnect::OnConnect ( )
inlinevirtual

Called on a successful connect

Implements ProxyConnect.

Definition at line 148 of file m_proxyscan.cpp.

References sockaddrs::pton(), sockaddrs::sa4, target_port, sockaddrs::valid(), and BinarySocket::Write().

bool SOCKS5ProxyConnect::Read ( const char *  buffer,
size_t  l 
)
inlinevirtual

Called with data from the socket

Parameters
bufferThe data
lThe length of buffer
Returns
true to continue reading, false to drop the socket

Reimplemented from BinarySocket.

Definition at line 180 of file m_proxyscan.cpp.

References ProxyConnect::Ban(), Anope::string::c_str(), and Anope::string::length().


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