Support for UDP / datagram sockets #31
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
At the moment only TCP sockets are nicely supported, but I've had folks reach out with UDP use-cases so it'd be a good idea to at least have basic support for it.
Implementation Notes
So we'd need to extend the
riot/runtime/net/addr.ml
to make a distinction between unix / datagram / stream sockets with something like:And then amend all the functions and interfaces, including
riot/lib/net.ml
which has a user-facingAddr
module with functions likeget_info
.Testing Ideas
I'm not very well versed in UDP tbh, so I'm very open to ideas on how to test the correctness and robustness of this. One thought would be to see if we can implement a low-level protocol like Wake-On-LAN as a test, if its not too much work.
The text was updated successfully, but these errors were encountered: