Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Packet Handling #2704

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Improve Packet Handling #2704

wants to merge 4 commits into from

Conversation

M-W-K
Copy link
Contributor

@M-W-K M-W-K commented Jan 22, 2025

What

Improves packet system for initial sync data allowing for the creation of sub-buffers to enforce data separation when necessary, allowing for improved logging of read/write mismatches.

Implementation Details

Introduces the AdvancedPacketBuffer class, which extends PacketBuffer while additionally containing logic for creating and managing sub-buffers from an original buffer.

Outcome

Allow for data separation & improved logging of when packets are not fully read.
Also allows for future functionality to be added to packet buffers in the future, since now our packet buffers will be part of our code base.

Additional Information

Addresses the same problem as #2703 but without sacrificing logging functionality.

@M-W-K M-W-K requested a review from a team as a code owner January 22, 2025 22:43
@M-W-K M-W-K added the type: refactor Suggestion to refactor a section of code label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: refactor Suggestion to refactor a section of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant