From 3475cf72c8d65dea7e2a4694b1f059d5a39824d2 Mon Sep 17 00:00:00 2001 From: Mehrdad Afshari Date: Fri, 5 May 2017 11:04:42 -0700 Subject: [PATCH] Corrected the documentation for ServerBuilder::AddListenPort --- include/grpc++/server_builder.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/grpc++/server_builder.h b/include/grpc++/server_builder.h index 2185b283ac2..c5b5cb4a48e 100644 --- a/include/grpc++/server_builder.h +++ b/include/grpc++/server_builder.h @@ -139,15 +139,17 @@ class ServerBuilder { return SetOption(MakeChannelArgumentOption(arg, value)); } - /// Tries to bind \a server to the given \a addr. + /// Enlists an endpoint \a addr (port with an optional IP address) to + /// bind the \a grpc::Server object to be created to. /// /// 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.). /// \params creds The credentials associated with the server. - /// \param selected_port[out] Upon success, updated to contain the port - /// number. \a nullptr otherwise. + /// \param selected_port[out] If not `nullptr`, gets populated with the port + /// number bound to the \a grpc::Server for the corresponding endpoint after + /// it is successfully bound, 0 otherwise. /// // TODO(dgq): the "port" part seems to be a misnomer. ServerBuilder& AddListeningPort(const grpc::string& addr,