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

Make port option non-nullable #2251

Closed
greymistcube opened this issue Aug 26, 2022 · 3 comments
Closed

Make port option non-nullable #2251

greymistcube opened this issue Aug 26, 2022 · 3 comments
Labels
api Related to user-facing APIs good first issue Good for newcomers hacktoberfest Newcomer-welcoming issues for Hacktoberfest network Related to networking (Libplanet.Net)

Comments

@greymistcube
Copy link
Contributor

I'd say using zero port by default to signal port binding will happen dynamically to a freely available port is pretty standard.

From what I gather, from a lower level network specification standpoint, zero port is reserved and not specifically used for anything.1 Many socket related APIs thus simply use zero port as a "wildcard" port. As we aren't really in raw socket programming business, and NetMQ also follows this convention, we might as well. See this GRC page for more info. 😗

Footnotes

  1. I didn't survey the direct source material, but secondary sources mention zero port is reserved and its use is not specified neither by IETF nor IANA. From what I gather, reserved is different from unassigned in the sense that a reserved port is not to be used.

@greymistcube greymistcube added network Related to networking (Libplanet.Net) api Related to user-facing APIs good first issue Good for newcomers labels Aug 26, 2022
@stale
Copy link

stale bot commented Jan 8, 2023

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

1 similar comment
@stale
Copy link

stale bot commented May 22, 2023

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

@stale stale bot added the stale The issue is stale label May 22, 2023
@Atralupus Atralupus added the hacktoberfest Newcomer-welcoming issues for Hacktoberfest label Oct 10, 2024
@stale stale bot removed the stale The issue is stale label Oct 10, 2024
@OnedgeLee
Copy link
Contributor

OnedgeLee commented Oct 25, 2024

@greymistcube
I'll close this issue.
It seems like deprecated since we've introduced HostOptions for endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to user-facing APIs good first issue Good for newcomers hacktoberfest Newcomer-welcoming issues for Hacktoberfest network Related to networking (Libplanet.Net)
Projects
Status: Done
Status: Done
Development

No branches or pull requests

3 participants