本文整理汇总了C++中CAMBEData::getYourAddress方法的典型用法代码示例。如果您正苦于以下问题:C++ CAMBEData::getYourAddress方法的具体用法?C++ CAMBEData::getYourAddress怎么用?C++ CAMBEData::getYourAddress使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAMBEData
的用法示例。
在下文中一共展示了CAMBEData::getYourAddress方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: sendData
bool CAPRSTransmit::sendData(const CAMBEData& data)
{
unsigned char buffer[60U];
unsigned int length = data.getG2Data(buffer, 60U);
return m_socket.write(buffer, length, data.getYourAddress(), data.getYourPort());
}
示例2: writeData
bool CCCSProtocolHandler::writeData(const CAMBEData& data)
{
unsigned char buffer[100U];
unsigned int length = data.getCCSData(buffer, 100U);
#if defined(DUMP_TX)
CUtils::dump(wxT("Sending Data"), buffer, length);
#endif
return m_socket.write(buffer, length, data.getYourAddress(), data.getYourPort());
}
示例3: process
void CXReflectorDPlusHandler::process(CAMBEData& data)
{
in_addr address = data.getYourAddress();
for (unsigned int i = 0U; i < m_maxReflectors; i++) {
CXReflectorDPlusHandler* reflector = m_reflectors[i];
if (reflector != NULL) {
if (reflector->m_address.s_addr == address.s_addr)
reflector->processInt(data);
}
}
}
示例4: writeAMBE
bool CHBRepeaterProtocolHandler::writeAMBE(CAMBEData& data)
{
unsigned char buffer[30U];
unsigned int length = data.getHBRepeaterData(buffer, 30U);
#if defined(DUMP_TX)
CUtils::dump(wxT("Sending Data"), buffer, length);
return true;
#else
return m_socket.write(buffer, length, data.getYourAddress(), data.getYourPort());
#endif
}
示例5: process
void CDPlusHandler::process(CAMBEData& data)
{
in_addr yourAddress = data.getYourAddress();
unsigned int yourPort = data.getYourPort();
unsigned int myPort = data.getMyPort();
for (unsigned int i = 0U; i < m_maxReflectors; i++) {
CDPlusHandler* reflector = m_reflectors[i];
if (reflector != NULL) {
if (reflector->m_yourAddress.s_addr == yourAddress.s_addr &&
reflector->m_yourPort == yourPort &&
reflector->m_myPort == myPort) {
reflector->processInt(data);
return;
}
}
}
}