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

UDP support #1875

Open
wants to merge 4 commits into
base: dev2.0
Choose a base branch
from
Open

UDP support #1875

wants to merge 4 commits into from

Conversation

gdamore
Copy link
Contributor

@gdamore gdamore commented Sep 29, 2024

fixes #

Note that the above format should be used in your git commit comments.
You agree that by submitting a PR, you have read and agreed to our
contributing guidelines.

This will be used in UDP.  It also lets us reduce some unnecessary
code paths for redundant library initialization.
This adds endian awareness at compile time, and defines some little
endian versions of some macros. We antiicpate making more use of
little endian in new protocols to reduce the "endian tax", as nearly
every modern system is little endian these days.
@gdamore
Copy link
Contributor Author

gdamore commented Sep 29, 2024

Highly draft...

@gdamore gdamore force-pushed the udp-wip branch 2 times, most recently from e2a94d5 to 563c8f8 Compare September 29, 2024 22:43
@gdamore
Copy link
Contributor Author

gdamore commented Sep 29, 2024

Draft Specification here: nanomsg/rfcs#1

This is the initial implementation of UDP transport.
It does in order guarantees (and consequently filters duplicates),
but it does not guarantee delivery.  The protocol limits payloads
to 65000 bytes (minus headers for SP), but you really want to
keep it to much less -- probably best for short messages that within
a single MTU to avoid IP fragmentation and reassembly.

This is unicast only for now (although there are plans for some
support for multicast and broadcast as well as being able to
perform automatic mesh building, but that will be in following work.

Additional tunables are coming.  This is only lightly tested at
this point, and should be considered experimental.  Its also undocumented.
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