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

Public Member Functions

 CWakeOnLanQt (const QString &szBroadcastAddress="255.255.255.255", QObject *parent=nullptr)
 
void SetBroadcastAddress (const QString &szBroadcastAddress="255.255.255.255")
 
QString SetBroadcastAddress (const QString &szIP, const QString &szMask)
 
bool SendMagicPacket (const QString &szMac, uint16_t portNum=9)
 SendMagicPacket.
 
bool SendSecureMagicPacket (const QString &szMac, const QString &szPassword, uint16_t portNum=9)
 SendSecureMagicPacket.
 

Protected Member Functions

virtual int SendPacket (const char *data, int64_t size, std::string addr, uint16_t port) override
 
 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)
 

Detailed Description

Definition at line 10 of file WakeOnLanQt.h.

Member Function Documentation

◆ SendMagicPacket()

bool CWakeOnLanQt::SendMagicPacket ( const QString &  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 25 of file WakeOnLanQt.cpp.

◆ SendPacket()

int CWakeOnLanQt::SendPacket ( const char *  data,
int64_t  size,
std::string  addr,
uint16_t  port 
)
overrideprotectedvirtual

Implements CWakeOnLan.

Definition at line 48 of file WakeOnLanQt.cpp.

◆ SendSecureMagicPacket()

bool CWakeOnLanQt::SendSecureMagicPacket ( const QString &  szMac,
const QString &  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
szPasswordA password string of length 6. or Hexadecimal representation of 6 bytes
portNumdefault is 9. 9 or 7
Returns

Definition at line 29 of file WakeOnLanQt.cpp.

◆ SetBroadcastAddress() [1/2]

void CWakeOnLanQt::SetBroadcastAddress ( const QString &  szBroadcastAddress = "255.255.255.255")

Definition at line 13 of file WakeOnLanQt.cpp.

◆ SetBroadcastAddress() [2/2]

QString CWakeOnLanQt::SetBroadcastAddress ( const QString &  szIP,
const QString &  szMask 
)

Definition at line 18 of file WakeOnLanQt.cpp.


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