kiksotik / hdc

Host Device Communication protocol
MIT License
2 stars 0 forks source link

Limit size of received messages in Python implementation. #19

Open kiksotik opened 2 years ago

kiksotik commented 2 years ago

To emulate real devices that might impose severe limits on message size. But also for security! :-) Hand down parameter from DeviceDescriptor to Transport to Packetizer. Expose value as mandatory property Core.MaxReqMsgSize

Reception on host-side (proxy) should also be limited, but we still haven't addresssed this in HDC-spec.