openscreenprotocol icon indicating copy to clipboard operation
openscreenprotocol copied to clipboard

Reallocate message type IDs?

Open markafoltz opened this issue 1 year ago • 0 comments

The current allocation of message type IDs seems semi random. If I recall there was an attempt to allocate smaller IDs to frequent messages since they may take up less space on the wire. But everything below 63 is one byte.

Here is what I think we should do:

  • Reserve 1-63 for anything having to do with media/data frames, presentation connection messages, or other very frequent messages
  • Renumber remaining messages in a more logical way, for example always using even numbers for sender => receiver and odd numbers for receiver <= sender and grouping related numbers together

markafoltz avatar Sep 10 '23 23:09 markafoltz