mirror of
https://github.com/romanz/amodem.git
synced 2026-04-01 08:46:49 +08:00
framing: use smaller frames, for faster failure
This commit is contained in:
@@ -33,8 +33,8 @@ class Checksum(object):
|
||||
|
||||
|
||||
class Framer(object):
|
||||
block_size = 1024
|
||||
prefix_fmt = '>L'
|
||||
block_size = 250
|
||||
prefix_fmt = '>B'
|
||||
prefix_len = struct.calcsize(prefix_fmt)
|
||||
checksum = Checksum()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user