Reticulum/FPE/Transport.py

17 lines
342 B
Python
Raw Normal View History

2018-03-19 15:39:08 +00:00
import FPE
2016-06-03 17:02:02 +00:00
class Transport:
2018-03-19 15:39:08 +00:00
# Constants
BROADCAST = 0x00;
TRANSPORT = 0x01;
RELAY = 0x02;
TUNNEL = 0x03;
types = [BROADCAST, TRANSPORT, RELAY, TUNNEL]
2016-06-03 17:02:02 +00:00
@staticmethod
def outbound(raw):
2018-03-19 15:39:08 +00:00
FPE.FlexPE.outbound(raw)
2016-06-03 17:02:02 +00:00
@staticmethod
def registerDestination(destination):
2018-03-19 15:39:08 +00:00
FPE.FlexPE.addDestination(destination)