gowol

package
v1.7.17 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WakeUp

func WakeUp(macAddr, broadcastIP, bcastInterface string, port int) error

func WakeUpRepeat

func WakeUpRepeat(macAddr, broadcastIP, bcastInterface string, port, repeat int)

Types

type MACAddress

type MACAddress [6]byte

MACAddress represents a 6 byte network mac address.

type MagicPacket

type MagicPacket struct {
	// contains filtered or unexported fields
}

MagicPacket is constituted of 6 bytes of 0xFF followed by 16-groups of the destination MAC address.

func New

func New(mac string) (*MagicPacket, error)

New returns a magic packet based on a mac address string.

func (*MagicPacket) Marshal

func (mp *MagicPacket) Marshal() ([]byte, error)

Marshal serializes the magic packet structure into a 102 byte slice.

Jump to

Keyboard shortcuts

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