Clearly callout the behavior for listening ports.

This is to clarify that the port number is a required part
of the listening address.
pull/19529/head
Soheil Hassas Yeganeh 5 years ago
parent 6376cc9b8f
commit def083b2c8
  1. 4
      include/grpcpp/server_builder_impl.h

@ -112,6 +112,10 @@ class ServerBuilder {
/// ///
/// It can be invoked multiple times. /// 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 /// \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, /// the scheme name is omitted, "dns:///" is assumed. To bind to any address,
/// please use IPv6 any, i.e., [::]:<port>, which also accepts IPv4 /// please use IPv6 any, i.e., [::]:<port>, which also accepts IPv4

Loading…
Cancel
Save