mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-27 13:52:14 +00:00
WIP: Added super basic UDP interface for testing
Basic UDP interface enabled testing with RNS reference implementation. Added to basic Transport implementation.
This commit is contained in:
1 parent
8d943318a6
commit
ea7b4603ed
31 files changed
+1276
-646
No files matched your search
+3
-3
@@ -41,11 +41,11 @@ Packet::Packet(const Destination& destination, const Interface& attached_interfa
|
||||
_object->_fromPacked = true;
|
||||
_object->_create_receipt = false;
|
||||
}
|
||||
extreme("Packet object created");
|
||||
mem("Packet object created");
|
||||
}
|
||||
|
||||
Packet::~Packet() {
|
||||
extreme("Packet object destroyed");
|
||||
mem("Packet object destroyed");
|
||||
}
|
||||
|
||||
|
||||
@@ -328,7 +328,7 @@ bool Packet::unpack() {
|
||||
throw std::length_error("Packet size of " + std::to_string(_object->_raw.size()) + " does not meet minimum header size of " + std::to_string(Type::Reticulum::HEADER_MINSIZE) +" bytes");
|
||||
}
|
||||
|
||||
const uint8_t *raw = _object->_raw.data();
|
||||
const uint8_t* raw = _object->_raw.data();
|
||||
|
||||
// read header
|
||||
_object->_flags = raw[0];
|
||||
|
||||
Reference in new issue
Block a user