玉兔远程控制 0.0.31
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | 所有成员列表
CWakeOnLanQt类 参考
类 CWakeOnLanQt 继承关系图:
CWakeOnLan

Public 成员函数

 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 成员函数

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)
 

详细描述

在文件 WakeOnLanQt.h10 行定义.

成员函数说明

◆ SendMagicPacket()

bool CWakeOnLanQt::SendMagicPacket ( const QString &  szMac,
uint16_t  portNum = 9 
)

SendMagicPacket

参数
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.
返回

在文件 WakeOnLanQt.cpp25 行定义.

◆ SendPacket()

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

实现了 CWakeOnLan.

在文件 WakeOnLanQt.cpp48 行定义.

◆ SendSecureMagicPacket()

bool CWakeOnLanQt::SendSecureMagicPacket ( const QString &  szMac,
const QString &  szPassword,
uint16_t  portNum = 9 
)

SendSecureMagicPacket

参数
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
返回

在文件 WakeOnLanQt.cpp29 行定义.

◆ SetBroadcastAddress() [1/2]

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

在文件 WakeOnLanQt.cpp13 行定义.

◆ SetBroadcastAddress() [2/2]

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

在文件 WakeOnLanQt.cpp18 行定义.


该类的文档由以下文件生成: