Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WakeUpRepeat ¶
Types ¶
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.
Click to show internal directories.
Click to hide internal directories.