RFC 1700:ASSIGNED NUMBERS
RFC-Ref

socket


Click on the red underlined text to get to the source

... If you are developing a protocol or application that will require the use of a link, socket, port, protocol, etc., please contact the IANA ...


... RPC_ANY (-1) which effectively means "I don't care." In the "I don't care" case the create code simply calls socket(2) or t_open(3n) which allocates an IP port ...
... b) inetd - which will automatically create sockets for those services that have reserved ports ...
... registry of previously allocated ports. Note "allocated" here is being used in the sense that they are used by an open socket, not assigned a well known name. ...


... Assigned well-known socket numbers Routing Information ...



Google
Web
RFC-Ref