#tokio #async #socks #proxy

async-socks5

An async/.await SOCKS5 implementation

10 releases

0.5.1 Mar 3, 2022
0.5.0 Dec 26, 2020
0.4.0 Oct 16, 2020
0.3.1 Mar 18, 2020
0.2.0 Dec 31, 2019

#79 in Asynchronous

Download history 17732/week @ 2022-08-10 6728/week @ 2022-08-17 6556/week @ 2022-08-24 12572/week @ 2022-08-31 16357/week @ 2022-09-07 4532/week @ 2022-09-14 9848/week @ 2022-09-21 17053/week @ 2022-09-28 5820/week @ 2022-10-05 6241/week @ 2022-10-12 6689/week @ 2022-10-19 6915/week @ 2022-10-26 9085/week @ 2022-11-02 18576/week @ 2022-11-09 4988/week @ 2022-11-16 3704/week @ 2022-11-23

37,475 downloads per month
Used in 8 crates (5 directly)

Apache-2.0 OR MIT

29KB
711 lines

async-socks5

An async/.await SOCKS5 implementation.

Examples

Connect to google.com:80 through my-proxy-server.com:54321:

use tokio::net::TcpStream;
use tokio::io::BufStream;
use async_socks5::{connect, Result};

#[tokio::main]
async fn main() -> Result<()> {
  let stream = TcpStream::connect("my-proxy-server.com:54321").await?;
  let mut stream = BufStream::new(stream);
  connect(&mut stream, ("google.com", 80), None).await?;
}

More examples.

Changelog

License

async-socks5 under either of:

at your option.

Dependencies

~2.6–8MB
~129K SLoC