Reticulum/FPE/Transport.py

17 lines
342 B
Python
Raw Normal View History

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