MCPcopy Index your code
hub / github.com/LesnyRumcajs/wakey

github.com/LesnyRumcajs/wakey @v0.4.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.4.1 ↗ · + Follow
24 symbols 28 edges 2 files 7 documented · 29%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Wakey

Rust Crates.io docs.rs codecov

Library for managing Wake-on-LAN packets. It supports: * creating magic packets, * broadcasting them via UDP.

Usage

From string representation of MAC address and using defaults when broadcasting:

let wol = wakey::WolPacket::from_string(&mac_adress, sep)?;
if wol.send_magic().is_ok() {
    println!("Sent the magic packet.");
} else {
    println!("Failed to send the magic packet.");
}

Packets can also be constructed with raw bytes and sent from / to custom addresses:

use std::net::SocketAddr;

let wol = wakey::WolPacket::from_bytes(&[0x00, 0x01, 0x02, 0x03, 0x04, 0x05])?;
let src = SocketAddr::from(([0,0,0,0], 0));
let dst = SocketAddr::from(([255,255,255,255], 9));

wol.send_magic_to(src, dst)?;

Included binary

cargo run --bin wakey-wake 00:11:22:33:44:55

Core symbols most depended-on inside this repo

Shape

Function 11
Method 10
Class 2
Enum 1

Languages

Rust100%

Modules by API surface

wakey/src/lib.rs22 symbols
wakey-wake/src/main.rs2 symbols

For agents

$ claude mcp add wakey \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page