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

Add event system #3

Closed
wants to merge 1 commit into from
Closed

Add event system #3

wants to merge 1 commit into from

Conversation

martinling
Copy link
Member

This is WIP to add a simple event system to the analyzer stream.

The way it works is to have a special case for the packet length field. Any length from 0xFF00 upwards is an event, with the low byte being an event code. This is followed by a 16-bit timestamp but no packet data.

Thus, we get 256 event codes we can use, and all events are timestamped.

To handle timestamp wrapping, we define a NONE event which is emitted when the timestamp is 0xFFFF and no packet has started. This ensures the timestamp of the next packet is not ambiguous.

@martinling
Copy link
Member Author

Now rebased and included in #7.

@martinling martinling closed this Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant