Function arti::socks::run_socks_proxy

source ·
pub async fn run_socks_proxy<R: Runtime>(
    runtime: R,
    tor_client: TorClient<R>,
    listen: Listen,
    rpc_mgr: Option<Arc<RpcMgr>>
) -> Result<()>
Expand description

Launch a SOCKS proxy to listen on a given localhost port, and run indefinitely.

Requires a runtime to use for launching tasks and handling timeouts, and a tor_client to use in connecting over the Tor network.