21 #ifndef G_NET_SOCKS__H
22 #define G_NET_SOCKS__H
41 G_EXCEPTION( SocksError ,
"socks error" ) ;
55 void operator=(
const Socks & ) ;
56 static std::string buildPdu(
const std::string & ,
unsigned int ) ;
59 size_t m_request_offset ;
60 std::string m_request ;
61 std::string m_response ;
An abstract interface for reading and writing from a non-blocking i/o channel.
bool send(G::ReadWrite &)
Sends the connect-request pdu. Returns true if fully sent.
bool read(G::ReadWrite &)
Reads the response.
Implements the socks4a proxy connection protocol.
Socks(const Location &)
Constructor.
A class that holds a host/service name pair and the preferred address family (if any), and also the results of a name-to-address lookup, ie.