mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-07-04 07:43:38 -07:00
File transfer example
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ class Packet:
|
||||
|
||||
# This is used to calculate allowable
|
||||
# payload sizes
|
||||
HEADER_MAXSIZE = 23
|
||||
HEADER_MAXSIZE = RNS.Reticulum.HEADER_MAXSIZE
|
||||
|
||||
# TODO: This should be calculated
|
||||
# more intelligently
|
||||
|
||||
+9
-3
@@ -1,6 +1,7 @@
|
||||
from Interfaces import *
|
||||
import ConfigParser
|
||||
from vendor.configobj import ConfigObj
|
||||
import RNS
|
||||
import atexit
|
||||
import struct
|
||||
import array
|
||||
@@ -11,9 +12,14 @@ import RNS
|
||||
#import traceback
|
||||
|
||||
class Reticulum:
|
||||
MTU = 500
|
||||
router = None
|
||||
config = None
|
||||
MTU = 500
|
||||
HEADER_MAXSIZE = 23
|
||||
|
||||
PAD_AES_HMAC = 64
|
||||
MDU = MTU - HEADER_MAXSIZE
|
||||
LINK_MDU = MDU - PAD_AES_HMAC
|
||||
router = None
|
||||
config = None
|
||||
|
||||
configdir = os.path.expanduser("~")+"/.reticulum"
|
||||
configpath = ""
|
||||
|
||||
Reference in New Issue
Block a user