Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cWakeOnLan Class Reference

#include <cWakeOnLan.h>

Public Member Functions

 UNITTEST_FRIEND (cWakeOnLan)
 

Static Public Member Functions

static HRESULT GRAYCALL Wakeup (const cNetMacAddr &macaddr, const cNetAddress &bcast)
 
static HRESULT GRAYCALL Wakeup (const char *pszMacAddr, const char *pszIPAddr=nullptr, NET_PORT_t wPort=k_PORT_DEFAULT)
 

Static Public Attributes

static const NET_PORT_t k_PORT_DEFAULT = 32767
 

Detailed Description

Given a computers IP address and Mac address, try to wake it up. Target must have a "wake on LAN" enabled network interface card. http://en.wikipedia.org/wiki/Wake-on-LAN

Member Function Documentation

◆ UNITTEST_FRIEND()

GrayLib::cWakeOnLan::UNITTEST_FRIEND ( cWakeOnLan  )

◆ Wakeup() [1/2]

HRESULT GRAYCALL GrayLib::cWakeOnLan::Wakeup ( const char *  pszMacAddr,
const char *  pszIPAddr = nullptr,
NET_PORT_t  wPort = k_PORT_DEFAULT 
)
static

Send WOL message. Use 'Wake on LAN' to wakeup a machine.

Note
Assume cNetSystem::IsInitNetCalls()
  • pszMacAddr pszIPAddr = nullptr = optional if on local LAN. wPort = k_PORT_DEFAULT. typically sent to port 0, 7 or 9. but shouldn't really matter !?

◆ Wakeup() [2/2]

HRESULT GRAYCALL GrayLib::cWakeOnLan::Wakeup ( const cNetMacAddr macaddr,
const cNetAddress bcast 
)
static

Send WOL message. typically sent to port 0, 7 or 9. but shouldn't really matter !?

Member Data Documentation

◆ k_PORT_DEFAULT

const NET_PORT_t GrayLib::cWakeOnLan::k_PORT_DEFAULT = 32767
static

The documentation for this class was generated from the following files: