pub async fn connect<T>(
        socks_server: T,
        target_addr: String,
        target_port: u16,
        config: Config,
    ) -> Result<Self>
    where
        T: ToSocketAddrs,
    {
        Self::connect_raw(socks_server, target_addr, target_port, None, config).await
    }
/// Connects to a target server through a SOCKS5 proxy.
Connects to a target server through a SOCKS5 proxy.
Connects to a target server through a SOCKS5 proxy .
pub async fn connect<T>(
        socks_server: T,
        target_addr: String,
        target_port: u16,
        config: Config,
    ) -> Result<Self>
    where
        T: ToSocketAddrs,
    {
        Self::connect_raw(socks_server, target_addr, target_port, None, config).await
    }
pub async fn connect < T > ( socks_server : T , target_addr : String , target_port : u16 , config : Config , ) -> Result < Self > where T : ToSocketAddrs , { Self :: connect_raw ( socks_server , target_addr , target_port , None , config ) . await }
Connects to a target server through a SOCKS5 proxy.
Connects to a target server through a SOCKS5 proxy .
socks_server
T
target_addr
String
target_port
u16
config
Config
socks_server
T
target_addr
String
target_port
u16
config
Config