|
|
|
@ -119,15 +119,15 @@ class Server GRPC_FINAL : public ServerInterface, private GrpcLibraryCodegen { |
|
|
|
|
|
|
|
|
|
/// Server constructors. To be used by \a ServerBuilder only.
|
|
|
|
|
///
|
|
|
|
|
/// \param sync_server_cqs The completion queues to use if the server is a
|
|
|
|
|
/// synchronous server (or a hybrid server). The server polls for new RPCs on
|
|
|
|
|
/// these queues
|
|
|
|
|
///
|
|
|
|
|
/// \param max_message_size Maximum message length that the channel can
|
|
|
|
|
/// receive.
|
|
|
|
|
///
|
|
|
|
|
/// \param args The channel args
|
|
|
|
|
///
|
|
|
|
|
/// \param sync_server_cqs The completion queues to use if the server is a
|
|
|
|
|
/// synchronous server (or a hybrid server). The server polls for new RPCs on
|
|
|
|
|
/// these queues
|
|
|
|
|
///
|
|
|
|
|
/// \param min_pollers The minimum number of polling threads per server
|
|
|
|
|
/// completion queue (in param sync_server_cqs) to use for listening to
|
|
|
|
|
/// incoming requests (used only in case of sync server)
|
|
|
|
@ -138,10 +138,10 @@ class Server GRPC_FINAL : public ServerInterface, private GrpcLibraryCodegen { |
|
|
|
|
///
|
|
|
|
|
/// \param sync_cq_timeout_msec The timeout to use when calling AsyncNext() on
|
|
|
|
|
/// server completion queues passed via sync_server_cqs param.
|
|
|
|
|
Server(std::shared_ptr<std::vector<std::unique_ptr<ServerCompletionQueue>>> |
|
|
|
|
Server(int max_message_size, ChannelArguments* args, |
|
|
|
|
std::shared_ptr<std::vector<std::unique_ptr<ServerCompletionQueue>>> |
|
|
|
|
sync_server_cqs, |
|
|
|
|
int max_message_size, ChannelArguments* args, int min_pollers, |
|
|
|
|
int max_pollers, int sync_cq_timeout_msec); |
|
|
|
|
int min_pollers, int max_pollers, int sync_cq_timeout_msec); |
|
|
|
|
|
|
|
|
|
/// Register a service. This call does not take ownership of the service.
|
|
|
|
|
/// The service must exist for the lifetime of the Server instance.
|
|
|
|
|