mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-12-04 05:40:09 -05:00
Added path request frequency monitoring support to interfaces subsystem
This commit is contained in:
parent
ef1ecb35e1
commit
8ed31d0dc8
6 changed files with 157 additions and 10 deletions
|
|
@ -1003,6 +1003,12 @@ class I2PInterface(Interface):
|
|||
def sent_announce(self, from_spawned=False):
|
||||
if from_spawned: self.oa_freq_deque.append(time.time())
|
||||
|
||||
def received_path_request(self, from_spawned=False):
|
||||
if from_spawned: self.ip_freq_deque.append(time.time())
|
||||
|
||||
def sent_path_request(self, from_spawned=False):
|
||||
if from_spawned: self.op_freq_deque.append(time.time())
|
||||
|
||||
def detach(self):
|
||||
RNS.log("Detaching "+str(self), RNS.LOG_DEBUG)
|
||||
self.i2p.stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue