wol

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMagicPacket

func CreateMagicPacket(MAC string) ([]byte, error)

By providing the target MAC address, it crafts a 'Magic Packet' and returns it in a byte array. Supports MAC address in three formats: 1. FF:FF:FF:FF:FF:FF 2. FF-FF-FF-FF-FF-FF 3. FFFF.FFFF.FFFF

func SendMagic

func SendMagic(magicPacket []byte, bcastAddr string, port int) (err error)

Send a provided magic packet to a specific broadcast address and port

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL