Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std/socket: Use 0 as default protocol number #1265

Draft
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

iacore
Copy link
Contributor

@iacore iacore commented Apr 2, 2024

Summary

  • what changed and how?
  • why are we changing it?

Notes for Reviewers

Prior as nim-lang/Nim#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.

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.

None yet

1 participant