Class WOL

Class Documentation

class WOL

Class for Magic Packet (Wake-on-Lan (WOL)) reset of device.

Public Functions

WOL(uint64_t hardware_addr, uint16_t port) noexcept

Constructor.

Parameters:
  • hardware_addr – MAC-address of device

  • port – destination UDP port

WOL(std::array<uint8_t, 6> hardware_addr, uint16_t port) noexcept

Constructor.

Parameters:
  • hardware_addr – MAC-address of device

  • port – destination UDP port

~WOL() = default
void send() const

Send Magic Packet without any data (“password”).

void send(const std::array<uint8_t, 4> &password) const

Send Magic Packet with data (“password”).

Parameters:

password – data to send