include/grpcpp/impl/codegen/call.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2018 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 #ifndef GRPCPP_IMPL_CODEGEN_CALL_H
19 #define GRPCPP_IMPL_CODEGEN_CALL_H
20 
21 // IWYU pragma: private, include <grpcpp/impl/call.h>
22 
25 
26 namespace grpc {
27 class CompletionQueue;
28 namespace experimental {
29 class ClientRpcInfo;
30 class ServerRpcInfo;
31 } // namespace experimental
32 namespace internal {
33 class CallHook;
34 class CallOpSetInterface;
35 
37 class Call final {
38  public:
39  Call()
40  : call_hook_(nullptr),
41  cq_(nullptr),
42  call_(nullptr),
46  : call_hook_(call_hook),
47  cq_(cq),
48  call_(call),
50 
53  : call_hook_(call_hook),
54  cq_(cq),
55  call_(call),
57  client_rpc_info_(rpc_info) {}
58 
61  : call_hook_(call_hook),
62  cq_(cq),
63  call_(call),
65  server_rpc_info_(rpc_info) {}
66 
69  }
70 
71  grpc_call* call() const { return call_; }
72  grpc::CompletionQueue* cq() const { return cq_; }
73 
75 
77  return client_rpc_info_;
78  }
79 
81  return server_rpc_info_;
82  }
83 
84  private:
91 };
92 } // namespace internal
93 } // namespace grpc
94 
95 #endif // GRPCPP_IMPL_CODEGEN_CALL_H
grpc::internal::CallHook
Definition: grpcpp/impl/codegen/call_hook.h:32
grpc::internal::Call::Call
Call(grpc_call *call, CallHook *call_hook, grpc::CompletionQueue *cq)
Definition: include/grpcpp/impl/codegen/call.h:45
grpc
Definition: grpcpp/alarm.h:33
grpc::internal::Call::call_
grpc_call * call_
Definition: include/grpcpp/impl/codegen/call.h:87
grpc::internal::Call::call
grpc_call * call() const
Definition: include/grpcpp/impl/codegen/call.h:71
grpc::internal::CallOpSetInterface
Definition: call_op_set_interface.h:36
grpc::internal::Call::server_rpc_info_
experimental::ServerRpcInfo * server_rpc_info_
Definition: include/grpcpp/impl/codegen/call.h:90
grpc::internal::Call::Call
Call()
Definition: include/grpcpp/impl/codegen/call.h:39
grpc::experimental::ClientRpcInfo
Definition: impl/codegen/client_interceptor.h:68
grpc_types.h
grpc_call
struct grpc_call grpc_call
Definition: grpc_types.h:70
grpc::internal::Call::server_rpc_info
experimental::ServerRpcInfo * server_rpc_info() const
Definition: include/grpcpp/impl/codegen/call.h:80
grpc::internal::Call::max_receive_message_size
int max_receive_message_size() const
Definition: include/grpcpp/impl/codegen/call.h:74
grpc::internal::Call::PerformOps
void PerformOps(CallOpSetInterface *ops)
Definition: include/grpcpp/impl/codegen/call.h:67
grpc::internal::Call::Call
Call(grpc_call *call, CallHook *call_hook, grpc::CompletionQueue *cq, int max_receive_message_size, experimental::ServerRpcInfo *rpc_info)
Definition: include/grpcpp/impl/codegen/call.h:59
grpc::internal::Call::client_rpc_info
experimental::ClientRpcInfo * client_rpc_info() const
Definition: include/grpcpp/impl/codegen/call.h:76
grpc::internal::Call
Straightforward wrapping of the C call object.
Definition: include/grpcpp/impl/codegen/call.h:37
grpc::internal::Call::call_hook_
CallHook * call_hook_
Definition: include/grpcpp/impl/codegen/call.h:85
grpc::internal::Call::Call
Call(grpc_call *call, CallHook *call_hook, grpc::CompletionQueue *cq, experimental::ClientRpcInfo *rpc_info)
Definition: include/grpcpp/impl/codegen/call.h:51
grpc::internal::Call::cq
grpc::CompletionQueue * cq() const
Definition: include/grpcpp/impl/codegen/call.h:72
grpc::experimental::ServerRpcInfo
Definition: impl/codegen/server_interceptor.h:58
call_hook.h
grpc::internal::Call::client_rpc_info_
experimental::ClientRpcInfo * client_rpc_info_
Definition: include/grpcpp/impl/codegen/call.h:89
internal
Definition: benchmark/test/output_test_helper.cc:20
grpc::CompletionQueue
Definition: include/grpcpp/impl/codegen/completion_queue.h:104
grpc::internal::Call::max_receive_message_size_
int max_receive_message_size_
Definition: include/grpcpp/impl/codegen/call.h:88
ops
static grpc_op ops[6]
Definition: test/core/fling/client.cc:39
grpc::internal::CallHook::PerformOpsOnCall
virtual void PerformOpsOnCall(CallOpSetInterface *ops, Call *call)=0
grpc::internal::Call::cq_
grpc::CompletionQueue * cq_
Definition: include/grpcpp/impl/codegen/call.h:86


grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:42