nimskull icon indicating copy to clipboard operation
nimskull copied to clipboard

std/socket: Use 0 as default protocol number

Open iacore opened this issue 3 months ago • 0 comments

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.

iacore avatar Apr 02 '24 13:04 iacore