mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2026-04-06 06:43:52 +00:00
First stage of CCS removal.
This commit is contained in:
parent
094f0d286d
commit
9669d865b5
35 changed files with 39 additions and 2286 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2010-2014 by Jonathan Naylor G4KLX
|
||||
* Copyright (C) 2010-2014,2018 by Jonathan Naylor G4KLX
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -256,24 +256,6 @@ void CHeaderData::setDCSData(const unsigned char *data, unsigned int length, con
|
|||
m_myPort = myPort;
|
||||
}
|
||||
|
||||
void CHeaderData::setCCSData(const unsigned char *data, unsigned int length, const in_addr& yourAddress, unsigned int yourPort, unsigned int myPort)
|
||||
{
|
||||
wxASSERT(data != NULL);
|
||||
wxASSERT(length >= 100U);
|
||||
|
||||
m_id = data[44U] * 256U + data[43U];
|
||||
|
||||
::memcpy(m_rptCall2, data + 7U, LONG_CALLSIGN_LENGTH);
|
||||
::memcpy(m_rptCall1, data + 15U, LONG_CALLSIGN_LENGTH);
|
||||
::memcpy(m_yourCall, data + 23U, LONG_CALLSIGN_LENGTH);
|
||||
::memcpy(m_myCall1, data + 31U, LONG_CALLSIGN_LENGTH);
|
||||
::memcpy(m_myCall2, data + 39U, SHORT_CALLSIGN_LENGTH);
|
||||
|
||||
m_yourAddress = yourAddress;
|
||||
m_yourPort = yourPort;
|
||||
m_myPort = myPort;
|
||||
}
|
||||
|
||||
bool CHeaderData::setG2Data(const unsigned char *data, unsigned int length, bool check, const in_addr& yourAddress, unsigned int yourPort)
|
||||
{
|
||||
wxASSERT(data != NULL);
|
||||
|
|
@ -528,18 +510,6 @@ void CHeaderData::getDCSData(unsigned char *data, unsigned int length) const
|
|||
::memcpy(data + 39U, m_myCall2, SHORT_CALLSIGN_LENGTH);
|
||||
}
|
||||
|
||||
void CHeaderData::getCCSData(unsigned char *data, unsigned int length) const
|
||||
{
|
||||
wxASSERT(data != NULL);
|
||||
wxASSERT(length >= 100U);
|
||||
|
||||
::memcpy(data + 7U, m_rptCall2, LONG_CALLSIGN_LENGTH);
|
||||
::memcpy(data + 15U, m_rptCall1, LONG_CALLSIGN_LENGTH);
|
||||
::memcpy(data + 23U, m_yourCall, LONG_CALLSIGN_LENGTH);
|
||||
::memcpy(data + 31U, m_myCall1, LONG_CALLSIGN_LENGTH);
|
||||
::memcpy(data + 39U, m_myCall2, SHORT_CALLSIGN_LENGTH);
|
||||
}
|
||||
|
||||
unsigned int CHeaderData::getG2Data(unsigned char *data, unsigned int length, bool check) const
|
||||
{
|
||||
wxASSERT(data != NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue