From 94ab1b55bfb29e19f5972d58b5cb7c194b9ae070 Mon Sep 17 00:00:00 2001 From: David Garcia Quintas Date: Mon, 15 May 2017 15:27:11 -0700 Subject: Make ServerBuilder accept (dns:///) URIs instead of just dns names --- include/grpc++/server_builder.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/grpc++/server_builder.h') diff --git a/include/grpc++/server_builder.h b/include/grpc++/server_builder.h index a56f81dc4b..b29d9606bc 100644 --- a/include/grpc++/server_builder.h +++ b/include/grpc++/server_builder.h @@ -142,14 +142,15 @@ class ServerBuilder { /// /// It can be invoked multiple times. /// - /// \param addr The address to try to bind to the server (eg, localhost:1234, - /// 192.168.1.1:31416, [::1]:27182, etc.). + /// \param addr_uri The address to try to bind to the server in URI form. If + /// the scheme name is omitted, "dns:///" is assumed. Valid values include + /// dns:///localhost:1234, / 192.168.1.1:31416, dns:///[::1]:27182, etc.). /// \params creds The credentials associated with the server. /// \param selected_port[out] Upon success, updated to contain the port /// number. \a nullptr otherwise. /// // TODO(dgq): the "port" part seems to be a misnomer. - ServerBuilder& AddListeningPort(const grpc::string& addr, + ServerBuilder& AddListeningPort(const grpc::string& addr_uri, std::shared_ptr creds, int* selected_port = nullptr); -- cgit v1.2.3