Skip to content

Commit

Permalink
Clearly callout the behavior for listening ports.
Browse files Browse the repository at this point in the history
This is to clarify that the port number is a required part
of the listening address.
  • Loading branch information
soheilhy committed Jul 2, 2019
1 parent 6376cc9 commit def083b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/grpcpp/server_builder_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ class ServerBuilder {
///
/// It can be invoked multiple times.
///
/// If port is not provided in the \a addr (e.g., "1.2.3.4:" or "1.2.3.4"),
/// the default port (i.e., https) is used. To request an ephemeral port,
/// \a addr must include 0 as the port number (e.g., "1.2.3.4:0").
///
/// \param addr_uri The address to try to bind to the server in URI form. If
/// the scheme name is omitted, "dns:///" is assumed. To bind to any address,
/// please use IPv6 any, i.e., [::]:<port>, which also accepts IPv4
Expand Down

0 comments on commit def083b

Please sign in to comment.