2020-05-11 21:05:04 +02:00
|
|
|
import RNS
|
|
|
|
|
2016-06-03 19:02:02 +02:00
|
|
|
class Interface:
|
|
|
|
IN = False
|
|
|
|
OUT = False
|
|
|
|
FWD = False
|
|
|
|
RPT = False
|
|
|
|
name = None
|
|
|
|
|
2022-02-25 18:47:55 +01:00
|
|
|
MODE_FULL = 0x01
|
|
|
|
MODE_POINT_TO_POINT = 0x02
|
|
|
|
MODE_ACCESS_POINT = 0x03
|
|
|
|
|
2016-06-03 19:02:02 +02:00
|
|
|
def __init__(self):
|
2021-09-24 20:10:04 +02:00
|
|
|
self.rxb = 0
|
|
|
|
self.txb = 0
|
|
|
|
self.online = False
|
2020-05-11 21:05:04 +02:00
|
|
|
|
|
|
|
def get_hash(self):
|
2021-09-24 16:09:07 +02:00
|
|
|
return RNS.Identity.full_hash(str(self).encode("utf-8"))
|
|
|
|
|
|
|
|
def detach(self):
|
|
|
|
pass
|