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

fix: split osc packets #928

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

fix: split osc packets #928

wants to merge 1 commit into from

Conversation

ronag
Copy link
Member

@ronag ronag commented Mar 13, 2018

I don't have time to do this properly. Hoping someone can take over finish up and test.

It should be good enough. Although room for improvement. But it needs test.

@ronag ronag requested a review from Julusian March 13, 2018 19:20
::osc::OutboundPacketStream o(reinterpret_cast<char*>(buffer_.data()),
static_cast<unsigned long>(buffer_.size()));
// TODO: Should use server clock.
time_++;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's good enough

@@ -126,13 +132,33 @@ struct client::impl : public spl::enable_shared_from_this<client::impl>
}

o << ::osc::EndMessage;

if (o.Size() >= 1024) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Limit is 1500 bytes... this an approximation.

@ronag
Copy link
Member Author

ronag commented Mar 14, 2018

Helges 2.1 implementation actually did this mostly correctly. It was just very complicated and we need to provide a time tag for each split bundle.

@dotarmin
Copy link
Contributor

dotarmin commented Sep 9, 2018

@ronag Are you working on this PR or can it be closed?

@ronag ronag force-pushed the master branch 2 times, most recently from 2b0c540 to 8ec45a4 Compare September 21, 2020 16:28
@Julusian Julusian removed their request for review December 2, 2022 16:41
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.

3 participants