Open
Description
There are plans to upstream this library into the zig std library. This issue is here to create a concrete plan and track progress.
Some considerations:
- Define a clear public API/error surface
- Collapse unix/windows/… errors into well-defined
zig-network
errors
- Collapse unix/windows/… errors into well-defined
- API must be event loop compatible
- Changes in zig std to OS APIs (Eliminate the POSIX API layer ziglang/zig#6600)
- Support unix sockets? If yes, how to solve it on windows
- Should we keep the address/port separation? OS's don't do it, but I find it unintuitive
- How does this play with unix sockets? Address is a file name, not an IP + Port
- The separation is required to implement happy eyeballs nicely
- Optimize the polling API (make it allocation-free if possible)
Roadmap:
- Clear up remaining questions
- Clean up the API and provide abtractions
- Create dedicated fork and start integration
- Create PR and hope for the best
Metadata
Metadata
Assignees
Labels
No labels