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