Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
CWakeOnLan Class Referenceabstract
Inheritance diagram for CWakeOnLan:
CWakeOnLanQt

Public Member Functions

 CWakeOnLan (const std::string &szBroadcastAddress="255.255.255.255")
 
void SetBroadcastAddress (const std::string &szBroadcastAddress="255.255.255.255")
 
std::string SetBroadcastAddress (const std::string &szIP, const std::string &szMask)
 
bool StringToArray (uint8_t *mac, const char *szMac)
 
bool SendMagicPacket (const std::string &szMac, uint16_t portNum=9)
 SendMagicPacket.
 
bool SendSecureMagicPacket (const std::string &szMac, const std::string szPassword, uint16_t portNum=9)
 SendSecureMagicPacket.
 
bool SendMagicPacket (const char *pszMacAddress, uint16_t portNum=9)
 
bool SendSecureMagicPacket (const char *pszMacAddress, const char *pszPassword, uint16_t portNum=9)
 
bool SendMagicPacket (uint8_t *pMacAddress, size_t sizeOfMacAddress, uint16_t portNum=9)
 
bool SendSecureMagicPacket (uint8_t *pMacAddress, size_t sizeOfMacAddress, uint8_t *pszPassword, size_t nPasswordSize, uint16_t portNum=9)
 
void GenerateMagicPacket (uint8_t *&pMagicPacket, size_t &sizeOfMagicPacket, uint8_t *pMacAddress, size_t sizeOfMacAddress)
 
void GenerateSecureMagicPacket (uint8_t *&pMagicPacket, size_t &sizeOfMagicPacket, uint8_t *pMacAddress, size_t sizeOfMacAddress, uint8_t *pSecureOn, size_t sizeOfSecureOn)
 

Protected Member Functions

virtual int SendPacket (const char *data, int64_t size, std::string addr, uint16_t port)=0
 

Private Attributes

std::string m_szBroadcastAddress
 

Detailed Description

Definition at line 11 of file WakeOnLan.h.

Constructor & Destructor Documentation

◆ CWakeOnLan()

CWakeOnLan::CWakeOnLan ( const std::string &  szBroadcastAddress = "255.255.255.255")

Definition at line 13 of file WakeOnLan.cpp.

Member Function Documentation

◆ GenerateMagicPacket()

void CWakeOnLan::GenerateMagicPacket ( uint8_t *&  pMagicPacket,
size_t &  sizeOfMagicPacket,
uint8_t *  pMacAddress,
size_t  sizeOfMacAddress 
)

Definition at line 142 of file WakeOnLan.cpp.

◆ GenerateSecureMagicPacket()

void CWakeOnLan::GenerateSecureMagicPacket ( uint8_t *&  pMagicPacket,
size_t &  sizeOfMagicPacket,
uint8_t *  pMacAddress,
size_t  sizeOfMacAddress,
uint8_t *  pSecureOn,
size_t  sizeOfSecureOn 
)

Definition at line 157 of file WakeOnLan.cpp.

◆ SendMagicPacket() [1/3]

bool CWakeOnLan::SendMagicPacket ( const char *  pszMacAddress,
uint16_t  portNum = 9 
)

Definition at line 77 of file WakeOnLan.cpp.

◆ SendMagicPacket() [2/3]

bool CWakeOnLan::SendMagicPacket ( const std::string &  szMac,
uint16_t  portNum = 9 
)

SendMagicPacket.

Parameters
szMacthe MAC address of wake on lan device. the format: Hexadecimal characters. eg: FF:FF:FF:FF:FF:FF
portNum9 or 7. the default is 9.
Returns

Definition at line 66 of file WakeOnLan.cpp.

◆ SendMagicPacket() [3/3]

bool CWakeOnLan::SendMagicPacket ( uint8_t *  pMacAddress,
size_t  sizeOfMacAddress,
uint16_t  portNum = 9 
)

Definition at line 107 of file WakeOnLan.cpp.

◆ SendSecureMagicPacket() [1/3]

bool CWakeOnLan::SendSecureMagicPacket ( const char *  pszMacAddress,
const char *  pszPassword,
uint16_t  portNum = 9 
)

Definition at line 87 of file WakeOnLan.cpp.

◆ SendSecureMagicPacket() [2/3]

bool CWakeOnLan::SendSecureMagicPacket ( const std::string &  szMac,
const std::string  szPassword,
uint16_t  portNum = 9 
)

SendSecureMagicPacket.

Parameters
szMacthe MAC address of wake on lan device. the format: Hexadecimal characters. eg: FF:FF:FF:FF:FF:FF
szPasswordHexadecimal characters of password
portNum
Returns

Definition at line 70 of file WakeOnLan.cpp.

◆ SendSecureMagicPacket() [3/3]

bool CWakeOnLan::SendSecureMagicPacket ( uint8_t *  pMacAddress,
size_t  sizeOfMacAddress,
uint8_t *  pszPassword,
size_t  nPasswordSize,
uint16_t  portNum = 9 
)

Definition at line 123 of file WakeOnLan.cpp.

◆ SetBroadcastAddress() [1/2]

void CWakeOnLan::SetBroadcastAddress ( const std::string &  szBroadcastAddress = "255.255.255.255")

Definition at line 17 of file WakeOnLan.cpp.

◆ SetBroadcastAddress() [2/2]

std::string CWakeOnLan::SetBroadcastAddress ( const std::string &  szIP,
const std::string &  szMask 
)

Definition at line 21 of file WakeOnLan.cpp.

◆ StringToArray()

bool CWakeOnLan::StringToArray ( uint8_t *  mac,
const char *  szMac 
)

Definition at line 37 of file WakeOnLan.cpp.

Member Data Documentation

◆ m_szBroadcastAddress

std::string CWakeOnLan::m_szBroadcastAddress
private

Definition at line 70 of file WakeOnLan.h.


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