Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cWakeOnLan.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cWakeOnLan_H
7 #define _INC_cWakeOnLan_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "../Net/cNetSocket.h"
14 
15 namespace GrayLib
16 {
18  class cNetMacAddr;
19 
21  {
26 
27  public:
28  static const NET_PORT_t k_PORT_DEFAULT = 32767; // why does it matter what port we send on ??
29 
30  static HRESULT GRAYCALL Wakeup(const cNetMacAddr& macaddr, const cNetAddress& bcast);
31  static HRESULT GRAYCALL Wakeup(const char* pszMacAddr, const char* pszIPAddr = nullptr, NET_PORT_t wPort = k_PORT_DEFAULT);
32 
34  };
35 }
36 #endif
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cNetAddr.h:31
Definition: cNetHost.h:31
Definition: cWakeOnLan.h:21
UNITTEST_FRIEND(cWakeOnLan)
Definition: cMesh.h:22
WORD NET_PORT_t
WinINet calls ports NET_PORT_t INTERNET_PORT = a service.
Definition: cNetPort.h:21
UNITTEST2_PREDEF(cQuadtree)