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

Implement stream encoding #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Implement stream encoding #49

wants to merge 1 commit into from

Conversation

klingtnet
Copy link
Owner

@klingtnet klingtnet commented Jun 10, 2023

This adds encode_tcp and fixes a bug when decoding a message that contains multiple packets. The implementation is still pretty basic, ideally encode_tcp should accept an Output trait object to encode into.

TODOS

  • The existing decode_tcp function was correct, I think. What I need to verify is, if it's okay to add OSC Packets to an OSC Bundle if the bundle comes first, because that's how the original implementation behaves. Commit 53e7144 reverts the "fix".
    • I consider the existing decoder implementation correct.
  • Squash fixups.

@klingtnet klingtnet mentioned this pull request Jun 10, 2023
@klingtnet klingtnet force-pushed the stream-encoding branch 3 times, most recently from 54a0db5 to 8d48073 Compare June 10, 2023 14:12
This implements OSC packet stream encoding in encode_tcp.

Closes #47.
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