nimskull
nimskull copied to clipboard
std/socket: Use 0 as default protocol number
Summary
- what changed and how?
- why are we changing it?
Notes for Reviewers
Prior as https://github.com/nim-lang/Nim/pull/19674.
I don't know what I am doing. I only know that the default protocol number should be 0 (default protocol for AF & socket type, to be determined by the OS).
nativesocket.nim
has a lot of duplicated code that could be simplified with meta-programming techniques. We should clean that up.