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

Public 成员函数

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

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

Private 属性

std::string m_szBroadcastAddress
 

详细描述

在文件 WakeOnLan.h11 行定义.

构造及析构函数说明

◆ CWakeOnLan()

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

在文件 WakeOnLan.cpp13 行定义.

成员函数说明

◆ GenerateMagicPacket()

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

在文件 WakeOnLan.cpp142 行定义.

◆ GenerateSecureMagicPacket()

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

在文件 WakeOnLan.cpp157 行定义.

◆ SendMagicPacket() [1/3]

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

在文件 WakeOnLan.cpp77 行定义.

◆ SendMagicPacket() [2/3]

bool CWakeOnLan::SendMagicPacket ( const std::string &  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.
返回

在文件 WakeOnLan.cpp66 行定义.

◆ SendMagicPacket() [3/3]

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

在文件 WakeOnLan.cpp107 行定义.

◆ SendSecureMagicPacket() [1/3]

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

在文件 WakeOnLan.cpp87 行定义.

◆ SendSecureMagicPacket() [2/3]

bool CWakeOnLan::SendSecureMagicPacket ( const std::string &  szMac,
const std::string  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
szPasswordHexadecimal characters of password
portNum
返回

在文件 WakeOnLan.cpp70 行定义.

◆ SendSecureMagicPacket() [3/3]

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

在文件 WakeOnLan.cpp123 行定义.

◆ SetBroadcastAddress() [1/2]

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

在文件 WakeOnLan.cpp17 行定义.

◆ SetBroadcastAddress() [2/2]

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

在文件 WakeOnLan.cpp21 行定义.

◆ StringToArray()

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

在文件 WakeOnLan.cpp37 行定义.

类成员变量说明

◆ m_szBroadcastAddress

std::string CWakeOnLan::m_szBroadcastAddress
private

在文件 WakeOnLan.h70 行定义.


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