[#ConnectThroughProxy] = ConnectThroughProxy :mrdocs: Connect to a specified destination service through a SOCKS5 proxy by first connecting to the SOCKS5 proxy. == Synopsis Declared in `<netbase.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::unique_ptr<Sock> ConnectThroughProxy( xref:Proxy.adoc[Proxy] const& proxy, std::string const& dest, uint16_t port, bool& proxy_connection_failed); ---- == Return Value the connected socket if the operation succeeded. Otherwise an empty unique_ptr. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#