Tun2Socks

Rust bindings for HevSocks5Tunnel

Features

Benchmarks

See here for more details.

Speed

CPU usage

Memory usage

API

``rust /// Start and run the socks5 tunnel, this function will blocks until the /// quit() is called or an error occurs. /// /// # Arguments /// /// *configpath- config file path /// *tunfd` - tunnel file descriptor /// /// # Returns /// /// Returns Ok(()) on successful, otherwise returns non-zero. pub fn main(configpath: &Path, tunfd: RawFd) -> Result<(), i32>

/// Stop the socks5 tunnel. pub fn quit() ```

Contributors

License

MIT