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

Big strings of text arent passed between android devices. #20

Open
TheBricktop opened this issue Jan 28, 2022 · 4 comments
Open

Big strings of text arent passed between android devices. #20

TheBricktop opened this issue Jan 28, 2022 · 4 comments

Comments

@TheBricktop
Copy link

TheBricktop commented Jan 28, 2022

Hello, im sending big json (not massive but 8k chars) from one device to other using extosc.
While the exchange is between win10 device and android there is no problem.
But when the exchange is between two androids the packet is not arriving to the other one.
While shorter strings are arriving without any problems, is there a limit of what can be shared through the extosc on android ?
Ive increased packet size to 65507 but still the issue persist, and only on android.

Edit: it is weird but any string longer than 1024 chars are not getting send from android to any other client.

@Iam1337
Copy link
Owner

Iam1337 commented Jan 31, 2022

Hey! In general, since OSC uses UDP, sending messages larger than 1500 bytes (https://en.wikipedia.org/wiki/Maximum_transmission_unit) in one send is a bad decision. Since larger packets will break into smaller packets, then they will be lost more often, so messages may not reach.

Accordingly, it is better to send such a large json in pieces.

But so far I have no idea - is this a limitation in Android, or just packets are lost due to the fact that they are larger than the MTU size.

@TheBricktop
Copy link
Author

Well i've made a byte splitter / assembler so i think its a good thing that ive run into this limitation.

@Iam1337
Copy link
Owner

Iam1337 commented Feb 3, 2022

Yep, that's the correct implementation.

@TheBricktop
Copy link
Author

I might share a code later never know when one might need it. Also uses unitask async for packet assembly.

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

No branches or pull requests

2 participants