41 G_EXCEPTION( SocksError ,
tx(
"socks error") )
55 static std::string
buildPdu(
const std::string & far_host ,
unsigned int far_port ) ;
59 std::size_t m_request_offset {0U} ;
60 std::string m_request ;
61 std::string m_response ;
A class that represents the remote target for out-going client connections.
Implements the SOCKS4a proxy connection protocol.
bool send(G::ReadWrite &)
Sends the connect-request pdu using the given file descriptor.
bool read(G::ReadWrite &)
Reads the response using the given file descriptor.
Socks(const Location &)
Constructor.
static std::string buildPdu(const std::string &far_host, unsigned int far_port)
Builds a SOCKS4a connect request pdu.
An abstract interface for reading and writing from a non-blocking i/o channel.
constexpr const char * tx(const char *p) noexcept
A briefer alternative to G::gettext_noop().