from .transport import Transport import struct class Intermediate(Transport): def __init__(self): self._init = False def recreate_fresh(self): return type(self)() def pack(self, input: bytes) -> bytes: if self._init: header = b'' else: header = b'\xee\xee\xee\xee' self._init = True return header + struct.pack(' (int, bytes): if len(input) < 4: raise EOFError() length = struct.unpack('