Connect to a specified destination service through a SOCKS5 proxy by first connecting to the SOCKS5 proxy.
Declared in <netbase.h>
std::unique_ptr<Sock>
ConnectThroughProxy(
Proxy const& proxy,
std::string const& dest,
uint16_t port,
bool& proxy_connection_failed);
the connected socket if the operation succeeded. Otherwise an empty unique_ptr.
| Name | Description |
|---|---|
| proxy [in] | The SOCKS5 proxy. |
| dest [in] | The destination service to which to connect. |
| port [in] | The destination port. |
| proxy_connection_failed [out] | Whether or not the connection to the SOCKS5 proxy failed. |