Skip to content

Commit

Permalink
docs: update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyc committed Jun 14, 2022
1 parent e28fede commit ec6fc33
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
12 changes: 9 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
# v0.9.0
# CHANGELOG

## v0.9.1

1. Update docs

## v0.9.0

1. Stable release

# v0.0.2
## v0.0.2

1. Update docs

# v0.0.1
## v0.0.1

1. First release
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wol-rs"
version = "0.9.0"
version = "0.9.1"
edition = "2021"
authors = ["fengyingcai <[email protected]>"]
description = "Wake-on-LAN utility"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Add `wol-rs` to `Cargo.toml`
[dependencies]
wol-rs = "1"

Send a WoL magic packet
Send a WoL magic packet over UDP

send_wol(<dest_mac>, None, None).unwrap()

Expand Down
13 changes: 9 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ use std::io;
use std::net::{IpAddr, UdpSocket};
use std::str::FromStr;

pub const MAC_ADDR_SIZE: usize = 6;
pub const BIND_PORT: u16 = 0;
pub const WOL_PORT: u16 = 9;
/// Mac address size of bytes
const MAC_ADDR_SIZE: usize = 6;

/// Bind port, 0 means assigned by os
const BIND_PORT: u16 = 0;

/// WoL port could be 0/7/9, use 9 here
const WOL_PORT: u16 = 9;

/// Mac address.
///
Expand Down Expand Up @@ -58,7 +63,7 @@ impl FromStr for MacAddr {
}
}

/// Send a WoL magic packet.
/// Send a WoL magic packet over UDP.
///
/// # Arguments
///
Expand Down

0 comments on commit ec6fc33

Please sign in to comment.