Make port option non-nullable #2251
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)
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
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. ↩
The text was updated successfully, but these errors were encountered: