wole

Crates.iowole
lib.rswole
version1.2.8
sourcesrc
created_at2020-10-14 09:28:57.185933
updated_at2022-03-01 18:43:00.021954
descriptionWake-On-Lan Magic Package Generator & Sender & CLI
homepage
repositoryhttps://github.com/ahmtcn123/Wole
max_upload_size
id299583
size15,042
Ahmetcan Aksu (ahmtcn123)

documentation

https://docs.rs/wole

README

Wole

Crates.io Version Documentation

Wake-On-Lan CLI

wole --help

CLI Usage

  • Waking up single device

    wole --mac 2c:2c:2c:2c:2c:2c --ip 192.168.1.100
  • Waking up multiple devices

    wole --mac 2c:2c:2c:2c:2c:2c --ip 192.168.1.100  --mac 2a:2c:2c:2c:2c:2c --ip 192.168.1.102
  • Sent packages aggressively

    wole --mac 2c:2c:2c:2c:2c:2c --ip 192.168.1.100 --aggressive
  • Listen for packages

    wole --listen 192.168.1.108

API Usage

    let create_package = wole::generate_magic_package("2C2C2C2C2C2C");

    if let Ok(package) = create_package {
        println!("Package Created");

        let send_package = wole::send_package(SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 8080), package);

        if let Ok(_) = send_package {
            println!("Package sent")
        } else if let Err(code) = send_package {
            if code == 0 {
                println!("Failed to connect device");
            } else if code == 1 {
                println!("Failed to send packages");
            }
        }
    } else if let Err(_) = create_package {
        println!("Failed to create package")
    }
Commit count: 17

cargo fmt