Tun2Socks

Rust bindings for HevSocks5Tunnel

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 zero on successful, otherwise returns -1. pub fn main(configpath: *const cchar, tunfd: cint) -> c_int;

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

Contributors

License

MIT