diff options
author | Mark D. Roth <roth@google.com> | 2017-05-23 09:20:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-23 09:20:39 -0700 |
commit | 34011f19ed40503fa658234742b3a4b85476af1a (patch) | |
tree | 12f9d4cc4e47027db8beb7fe46f44534f9d8472c /include | |
parent | 6fb840b8cd2888ceb5517577dd2c4fd7ec9637df (diff) | |
parent | 98bb6323ae25d8c7a52617b615a6c3b43879e683 (diff) |
Merge pull request #11246 from markdroth/doc_fixes
More Doxygen comment improvements.
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc++/create_channel.h | 10 | ||||
-rw-r--r-- | include/grpc++/impl/codegen/client_context.h | 5 | ||||
-rw-r--r-- | include/grpc++/security/auth_metadata_processor.h | 3 | ||||
-rw-r--r-- | include/grpc++/server.h | 2 | ||||
-rw-r--r-- | include/grpc++/server_builder.h | 8 |
5 files changed, 20 insertions, 8 deletions
diff --git a/include/grpc++/create_channel.h b/include/grpc++/create_channel.h index 669711531f..11f9bc037c 100644 --- a/include/grpc++/create_channel.h +++ b/include/grpc++/create_channel.h @@ -46,8 +46,9 @@ namespace grpc { /// Create a new \a Channel pointing to \a target. /// /// \param target The URI of the endpoint to connect to. -/// \param creds Credentials to use for the created channel. If it does not hold -/// an object or is invalid, a lame channel is returned. +/// \param creds Credentials to use for the created channel. If it does not +/// hold an object or is invalid, a lame channel (one on which all operations +/// fail) is returned. std::shared_ptr<Channel> CreateChannel( const grpc::string& target, const std::shared_ptr<ChannelCredentials>& creds); @@ -58,8 +59,9 @@ std::shared_ptr<Channel> CreateChannel( /// arguments only if necessary. /// /// \param target The URI of the endpoint to connect to. -/// \param creds Credentials to use for the created channel. If it does not hold -/// an object or is invalid, a lame channel is returned. +/// \param creds Credentials to use for the created channel. If it does not +/// hold an object or is invalid, a lame channel (one on which all operations +/// fail) is returned. /// \param args Options for channel creation. std::shared_ptr<Channel> CreateCustomChannel( const grpc::string& target, diff --git a/include/grpc++/impl/codegen/client_context.h b/include/grpc++/impl/codegen/client_context.h index b03715e70c..d216cc59c8 100644 --- a/include/grpc++/impl/codegen/client_context.h +++ b/include/grpc++/impl/codegen/client_context.h @@ -331,8 +331,9 @@ class ClientContext { return census_context_; } - /// Send a best-effort out-of-band cancel. The call could be in any stage. - /// e.g. if it is already finished, it may still return success. + /// Send a best-effort out-of-band cancel on the call associated with + /// this client context. The call could be in any stage; e.g., if it is + /// already finished, it may still return success. /// /// There is no guarantee the call will be cancelled. void TryCancel(); diff --git a/include/grpc++/security/auth_metadata_processor.h b/include/grpc++/security/auth_metadata_processor.h index 18e8a47515..7df796574c 100644 --- a/include/grpc++/security/auth_metadata_processor.h +++ b/include/grpc++/security/auth_metadata_processor.h @@ -42,6 +42,9 @@ namespace grpc { +/// Interface allowing custom server-side authorization based on credentials +/// encoded in metadata. Objects of this type can be passed to +/// \a ServerCredentials::SetAuthMetadataProcessor(). class AuthMetadataProcessor { public: typedef std::multimap<grpc::string_ref, grpc::string_ref> InputMetadata; diff --git a/include/grpc++/server.h b/include/grpc++/server.h index 85a7300820..7f5a883574 100644 --- a/include/grpc++/server.h +++ b/include/grpc++/server.h @@ -68,7 +68,7 @@ class Server final : public ServerInterface, private GrpcLibraryCodegen { public: ~Server(); - /// Block waiting for all work to complete. + /// Block until the server shuts down. /// /// \warning The server must be either shutting down or some other thread must /// call \a Shutdown for this function to ever return. diff --git a/include/grpc++/server_builder.h b/include/grpc++/server_builder.h index 8bedef5899..f8b6d03e35 100644 --- a/include/grpc++/server_builder.h +++ b/include/grpc++/server_builder.h @@ -71,7 +71,13 @@ class ServerBuilder { ServerBuilder(); ~ServerBuilder(); - enum SyncServerOption { NUM_CQS, MIN_POLLERS, MAX_POLLERS, CQ_TIMEOUT_MSEC }; + /// Options for synchronous servers. + enum SyncServerOption { + NUM_CQS, ///< Number of completion queues. + MIN_POLLERS, ///< Minimum number of polling threads. + MAX_POLLERS, ///< Maximum number of polling threads. + CQ_TIMEOUT_MSEC ///< Completion queue timeout in milliseconds. + }; /// Register a service. This call does not take ownership of the service. /// The service must exist for the lifetime of the \a Server instance returned |