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

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
- 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::SOCKS5ProxyConnect ( ProxyCheck p,
unsigned short  po 

Definition at line 144 of file m_proxyscan.cpp.

Member Function Documentation

◆ GetType()

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

Implements ProxyConnect.

Definition at line 175 of file m_proxyscan.cpp.

◆ OnConnect()

void SOCKS5ProxyConnect::OnConnect ( )

Called on a successful connect

Implements ProxyConnect.

Definition at line 148 of file m_proxyscan.cpp.

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

◆ Read()

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

Called with data from the socket

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

Reimplemented from BinarySocket.

Definition at line 180 of file m_proxyscan.cpp.

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

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