package wol-mirage

All checked builds pass
  1. Overview
  2. Docs
Wake-on-LAN for MirageOS

Install

dune-project
 Dependency

Authors

Maintainers

Sources

wol-1.0.tar.gz
md5=e7a5baecc01a778d3772ad52a5b597f0
sha512=a254cefa47360b7e60c875db254062645c629a95f063cd500955109e18ebd2918f1d977024747f17841ad02e8f2d911deb158552e85459b23d0c5772d52e5bb4

Description

Send Wake-on-LAN magic packets using the MirageOS network stack.

Added to opam-repository:

README

ocaml-wake-on-lan

OCaml libraries for sending Wake-on-LAN magic packets.

  • wol — pure library for constructing magic packets from MAC addresses
  • wol-eio — Eio-based UDP sending, plus the owol CLI tool
  • wol-mirage — MirageOS network stack support

Installation

opam install wol-eio

CLI usage

owol AA:BB:CC:DD:EE:FF

Options:

  • -p, --port — UDP port (default: 9)
  • -a, --address — destination IP (default: 255.255.255.255)
  • -b, --broadcast — set SO_BROADCAST socket option (default: true)

Library usage

(* Construct a magic packet *)
let packet = Wol.magic_packet (Macaddr.of_string_exn "AA:BB:CC:DD:EE:FF")

(* Send via Eio *)
Wol_eio.send ~net mac

References

Dependencies (4)

  1. tcpip >= "8.0"
  2. wol = version
  3. ocaml >= "5.2"
  4. dune >= "3.10"

Dev Dependencies (1)

  1. odoc with-doc

Optional Dependencies

None

Used by

None

Conflicts

None

Build status

Results of building wol-mirage with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
1.0 (this version) n/a n/a good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure