Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ark0f/async-socks5

An async/.await SOCKS5 implementation
https://github.com/ark0f/async-socks5

async rust socks5

Last synced: 3 days ago
JSON representation

An async/.await SOCKS5 implementation

Awesome Lists containing this project

README

        


async-socks5



















An `async`/`.await` [SOCKS5](https://tools.ietf.org/html/rfc1928) implementation.

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

```rust
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](https://docs.rs/async-socks5).

# [Changelog](https://github.com/ark0f/async-socks5/blob/master/CHANGELOG.md)

# License
async-socks5 under either of:

* [Apache License 2.0](https://github.com/ark0f/async-socks5/blob/master/LICENSE-APACHE.md)
* [MIT](https://github.com/ark0f/async-socks5/blob/master/LICENSE-MIT.md)

at your option.