mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-05-06 08:25:57 -04:00
Implemented RTT measurements on link establishment and link teardown procedure
This commit is contained in:
parent
de8d9cf722
commit
ece4f732f4
3 changed files with 133 additions and 53 deletions
|
@ -29,6 +29,8 @@ class Packet:
|
|||
RESPONSE = 0x09
|
||||
COMMAND = 0x0A
|
||||
COMMAND_STAT = 0x0B
|
||||
LINKCLOSE = 0xFD
|
||||
LRRTT = 0xFE
|
||||
LRPROOF = 0xFF
|
||||
|
||||
HEADER_MAXSIZE = 23
|
||||
|
@ -143,6 +145,9 @@ class Packet:
|
|||
|
||||
def send(self):
|
||||
if not self.sent:
|
||||
if self.destination.type == RNS.Destination.LINK:
|
||||
if self.destination.status == RNS.Link.CLOSED:
|
||||
raise IOError("Attempt to transmit over a closed link")
|
||||
if not self.packed:
|
||||
self.pack()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue