Hi @anasvhora284, this follow-up comes from strengthening UHID event decoding in #10.
Background
The current local-socket protocol sends an event type followed by a fixed-size payload. It has no frame length or protocol version. The decoder can identify a truncated event, but an extra or missing byte may misalign the stream and cause every following byte to be interpreted as the wrong event.
The socket is local and peer-verified, so this is mainly a reliability and compatibility concern rather than a request for network-level complexity.
Goal
Define a small framed and versioned event format so malformed or future events can be rejected or skipped without corrupting the rest of the stream.
Proposed scope
Non-goals
- Adding encryption or checksums without a demonstrated need on the peer-verified local socket.
- Depending on Android sockets or hardware in ordinary JVM tests.
- Mixing pointer sensitivity or scroll-speed settings into the wire-format change.
The format should remain intentionally small and should be agreed before implementation because both sides must migrate together.
Hi @anasvhora284, this follow-up comes from strengthening UHID event decoding in #10.
Background
The current local-socket protocol sends an event type followed by a fixed-size payload. It has no frame length or protocol version. The decoder can identify a truncated event, but an extra or missing byte may misalign the stream and cause every following byte to be interpreted as the wrong event.
The socket is local and peer-verified, so this is mainly a reliability and compatibility concern rather than a request for network-level complexity.
Goal
Define a small framed and versioned event format so malformed or future events can be rejected or skipped without corrupting the rest of the stream.
Proposed scope
Non-goals
The format should remain intentionally small and should be agreed before implementation because both sides must migrate together.