async-socks5

Crates.ioasync-socks5
lib.rsasync-socks5
version0.6.0
sourcesrc
created_at2019-12-21 14:04:39.329336
updated_at2024-02-25 23:48:57.653239
descriptionAn async/.await SOCKS5 implementation
homepage
repositoryhttps://github.com/ark0f/async-socks5
max_upload_size
id191207
size41,696
Arsenii Lyashenko (ark0f)

documentation

https://docs.rs/async-socks5

README

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.

Commit count: 134

cargo fmt