pub fn connect_through_proxy(
    proxy: &ProxyType,
    str_dest: &String,
    port: u16,
    sock: &Sock,
    n_timeout: i32,
    out_proxy_connection_failed: &mut bool
) -> bool
Expand description

| Connect to a specified destination | service through a SOCKS5 proxy by first | connecting to the SOCKS5 proxy. | | ———– | @param proxy | | The SOCKS5 proxy. | ––––– | @param strDest | | The destination service to which to | connect. | ––––– | @param port | | The destination port. | ––––– | @param sock | | The socket on which to connect to the | SOCKS5 proxy. | ––––– | @param nTimeout | | Wait this many milliseconds for the | connection to the SOCKS5 proxy to be | established. | ––––– | @param[out] outProxyConnectionFailed | | Whether or not the connection to the | | SOCKS5 proxy failed. | | ———– | @return | | Whether or not the operation succeeded. |