13 CWakeOnLan(
const std::string& szBroadcastAddress =
"255.255.255.255");
15 void SetBroadcastAddress(
const std::string& szBroadcastAddress =
"255.255.255.255");
16 std::string SetBroadcastAddress(
const std::string& szIP,
const std::string& szMask);
18 bool StringToArray(uint8_t* mac,
const char* szMac);
38 const std::string& szMac,
39 const std::string szPassword,
40 uint16_t portNum = 9);
44 const char* pszMacAddress,
45 const char* pszPassword,
46 uint16_t portNum = 9);
49 size_t sizeOfMacAddress,
50 uint16_t portNum = 9);
52 size_t sizeOfMacAddress,
55 uint16_t portNum = 9);
57 void GenerateMagicPacket(uint8_t*& pMagicPacket,
size_t& sizeOfMagicPacket,
58 uint8_t* pMacAddress,
size_t sizeOfMacAddress);
59 void GenerateSecureMagicPacket(uint8_t*& pMagicPacket,
60 size_t& sizeOfMagicPacket,
62 size_t sizeOfMacAddress,
64 size_t sizeOfSecureOn);
67 virtual int SendPacket(
const char* data, int64_t size, std::string addr, uint16_t port) = 0;
70 std::string m_szBroadcastAddress;