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

Does this support reliable packet fragmentation? #3

Open
asusralis opened this issue Mar 23, 2020 · 1 comment
Open

Does this support reliable packet fragmentation? #3

asusralis opened this issue Mar 23, 2020 · 1 comment

Comments

@asusralis
Copy link

Also, does it work well with Unity Android/IOS Aot? And does it support reliable ordered? Thanks for any info!

@willardf
Copy link
Owner

It works very well with Unity's IL2CPP/AoT because there is no native dll dependency or marshalling. I use IL2CPP exclusively for my mobile ports.

Hazel does not support fragmented messages. I am somewhat lukewarm on it because I have no personal need for that feature, and I haven't gotten any feedback about it. I added a statistic Connection.Statistics.FragmentableMessagesSent that counts messages sent over 1200 bytes and found I never did that. For everything between 1200 and 64kb, UDP will fragment unreliably which will cause a disconnect when Hazel sends a reliable message over 1200 bytes through a no-fragment connection.

Hazel also does not support reliable ordered, however because it supports reliable sending, I tend to implement ordering at the application layer. I'm less likely to add this into Hazel because I want to keep Hazel very minimal. I don't like libraries that add extra overhead for features I may or may not use. But I might be tempted to craft and include helper classes that make ordered messaging straightforward at the application layer.

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