Skip to content

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.
@gdamore
Copy link
Contributor Author

gdamore commented Oct 6, 2024

I refactored this somewhat, and merged into main. Closing.

@gdamore gdamore closed this Oct 6, 2024
@gdamore gdamore deleted the udp-wip branch November 8, 2024 07:30
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.

2 participants