Figure out how to do packets [word vomit] #3

Open
opened 2024-11-29 01:24:27 +00:00 by Lyssieth · 0 comments
Owner

I want to do a binary format with diffs (that is, the full state doesn't need to get sent with every GetStatus packet)... so it needs some kind of temporal memory. A log of events that can be fast forwarded/rewound as necessary based on existing information.

One idea is to use ULIDs as the indexes, since they're sortable and unique (just using an incrementing number feels... weird, but maybe not bad), since the server is the Source Of Truth™️ for the whole thing.

For frame synchronization/formatting, maybe COBS?
Though, might be unnecessary since it's TCP... idk.

I want to do a binary format with diffs (that is, the full state doesn't need to get sent with every `GetStatus` packet)... so it needs some kind of temporal memory. A log of events that can be fast forwarded/rewound as necessary based on existing information. One idea is to use [ULIDs](https://github.com/ulid/spec) as the indexes, since they're sortable and unique (just using an incrementing number feels... *weird*, but maybe not *bad*), since the server is the Source Of Truth:tm: for the whole thing. For frame synchronization/formatting, maybe [COBS](https://en.wikipedia.org/wiki/Consistent_Overhead_Byte_Stuffing)? Though, might be unnecessary since it's TCP... idk.
Lyssieth added this to the Todo project 2024-11-29 01:24:27 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
QtStuff/zither#3
No description provided.