Skip to content

CCZU-OSSA/cczu-vpn-proto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

CCZU-VPN-PROTO

Rust size

Features

todo!()

Usage

For Rust

cargo add --git https://github.com/CCZU-OSSA/cczu-vpn-proto.git
service::start_service("user".trim(), "password".trim()).await;
service::start_polling_packet(move |a, b| {
    println!("rev datasize: {a}");
    // TODO: proxy to tun/tap
});
loop{
    // TODO: read raw packet from tun/tap
    if !service::send_tcp_packet(&mut buf[..len]).await {
        println!("packet send failed");
    }
    if service::POLLER_SIGNAL.load(std::sync::atomic::Ordering::Relaxed) {
        return Ok(());
    }
}

For C++

Install rust toolchain for your platform.

rustup target add xxxxx
cargo build --release --target=xxxxx

Find library in target/release/

Load library and use.

About

The Protocol for Visiting CCZU WebVPN

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages