https://github.com/ark0f/async-socks5
An async/.await SOCKS5 implementation
https://github.com/ark0f/async-socks5
async rust socks5
Last synced: about 1 year ago
JSON representation
An async/.await SOCKS5 implementation
- Host: GitHub
- URL: https://github.com/ark0f/async-socks5
- Owner: ark0f
- License: apache-2.0
- Created: 2019-12-13T08:00:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-23T15:44:21.000Z (almost 2 years ago)
- Last Synced: 2025-03-29T15:10:02.789Z (over 1 year ago)
- Topics: async, rust, socks5
- Language: Rust
- Homepage:
- Size: 90.8 KB
- Stars: 81
- Watchers: 1
- Forks: 16
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE.md
Awesome Lists containing this project
README
## 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.