Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MagicPacket ¶
type MagicPacket [102]byte
MagicPacket is a slice of 102 bytes containing the magic packet data.
func NewMagicPacket ¶
func NewMagicPacket(macAddr string) (packet MagicPacket, err error)
NewMagicPacket allocates a new MagicPacket with the specified MAC.
func (MagicPacket) Send ¶
func (mp MagicPacket) Send(addr string) error
Send writes the MagicPacket to the specified address on port 9.
Click to show internal directories.
Click to hide internal directories.