Revert "Simplify the logic by removing the ring buffer."

This reverts commit baef6c962e.
This commit is contained in:
Jonathan Naylor
2017-11-24 16:20:01 +00:00
parent baef6c962e
commit d4d26fc05f
2 changed files with 37 additions and 22 deletions

View File

@@ -22,6 +22,7 @@
#include "JitterBuffer.h"
#include "UDPSocket.h"
#include "Timer.h"
#include "RingBuffer.h"
#include "DMRData.h"
#include "Defines.h"
@@ -89,6 +90,8 @@ private:
unsigned char* m_salt;
uint32_t* m_streamId;
CRingBuffer<unsigned char> m_rxData;
std::string m_options;
std::string m_callsign;
@@ -112,8 +115,6 @@ private:
bool writePing();
bool write(const unsigned char* data, unsigned int length);
void receiveData(const unsigned char* data, unsigned int length);
};
#endif