Improve the M17 networking.

This commit is contained in:
Jonathan Naylor
2020-10-15 15:44:59 +01:00
parent e0f4928db5
commit 6e9174cf4c
6 changed files with 52 additions and 159 deletions

View File

@@ -23,6 +23,7 @@
#include "RingBuffer.h"
#include "UDPSocket.h"
#include <random>
#include <cstdint>
class CM17Network {
@@ -50,7 +51,10 @@ private:
unsigned int m_addrLen;
bool m_debug;
bool m_enabled;
uint16_t m_outId;
uint16_t m_inId;
CRingBuffer<unsigned char> m_buffer;
std::mt19937 m_random;
};
#endif