A NOTE has been added to this issue. ====================================================================== http://austingroupbugs.net/view.php?id=1068 ====================================================================== Reported By: dannyniu Assigned To: ====================================================================== Project: 1003.1(2013)/Issue7+TC1 Issue ID: 1068 Category: Base Definitions and Headers Type: Omission Severity: Objection Priority: normal Status: New Name: DannyNiu/NJF Organization: User Reference: Section: Base Definition, Headers <netinet/in.h> Page Number: 307 Line Number: 10260 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2016-08-22 03:14 UTC Last Modified: 2017-02-19 05:28 UTC ====================================================================== Summary: Binding to a system-assigned port. ======================================================================
---------------------------------------------------------------------- (0003561) dannyniu (reporter) - 2017-02-19 05:28 http://austingroupbugs.net/view.php?id=1068#c3561 ---------------------------------------------------------------------- The biggest reason I propose to add it to the standard, is because it's been taught as standard practice. Here quotes "UNIX Network Programming", by W. Richard Stevens et.al. Section 4.4 bind Function. ..., but it is rare for a TCP server to let the kernel choose an ephemeral port, since servers are known by their well-known port. Exception to this rule are Remote Procedure Call (RPC) servers. ... If we specify a port number of 0, the kernel chooses an ephemeral port when bind is called. ... Issue History Date Modified Username Field Change ====================================================================== 2016-08-22 03:14 dannyniu New Issue 2016-08-22 03:14 dannyniu Name => DannyNiu/NJF 2016-08-22 03:14 dannyniu Section => Base Definition, Headers <netinet/in.h> 2016-08-22 03:14 dannyniu Page Number => 307 2016-08-22 03:14 dannyniu Line Number => 10260 2016-08-22 16:45 shware_systems Note Added: 0003354 2017-02-19 05:28 dannyniu Note Added: 0003561 ======================================================================