Reticulum/RNS/Interfaces/Interface.py

19 lines
329 B
Python
Raw Normal View History

import RNS
2016-06-03 19:02:02 +02:00
class Interface:
IN = False
OUT = False
FWD = False
RPT = False
name = None
def __init__(self):
2021-09-24 20:10:04 +02:00
self.rxb = 0
self.txb = 0
self.online = False
def get_hash(self):
return RNS.Identity.full_hash(str(self).encode("utf-8"))
def detach(self):
pass