Go to the source code of this file.
|
static void | grpc_core::done_termination (void *arg, grpc_error_handle) |
|
void * | grpc_call_arena_alloc (grpc_call *call, size_t size) |
|
grpc_call_error | grpc_call_cancel (grpc_call *call, void *reserved) |
|
void | grpc_call_cancel_internal (grpc_call *call) |
|
grpc_call_error | grpc_call_cancel_with_status (grpc_call *c, grpc_status_code status, const char *description, void *reserved) |
|
grpc_compression_algorithm | grpc_call_compression_for_level (grpc_call *call, grpc_compression_level level) |
|
void * | grpc_call_context_get (grpc_call *call, grpc_context_index elem) |
|
void | grpc_call_context_set (grpc_call *call, grpc_context_index elem, void *value, void(*destroy)(void *value)) |
|
grpc_error_handle | grpc_call_create (grpc_call_create_args *args, grpc_call **out_call) |
|
const char * | grpc_call_error_to_string (grpc_call_error error) |
|
int | grpc_call_failed_before_recv_message (const grpc_call *c) |
|
grpc_call * | grpc_call_from_top_element (grpc_call_element *surface_element) |
|
grpc_core::Arena * | grpc_call_get_arena (grpc_call *call) |
|
grpc_call_stack * | grpc_call_get_call_stack (grpc_call *call) |
|
size_t | grpc_call_get_initial_size_estimate () |
|
char * | grpc_call_get_peer (grpc_call *call) |
|
uint8_t | grpc_call_is_client (grpc_call *call) |
|
bool | grpc_call_is_trailers_only (const grpc_call *call) |
|
void | grpc_call_ref (grpc_call *c) |
|
absl::string_view | grpc_call_server_authority (const grpc_call *call) |
|
void | grpc_call_set_completion_queue (grpc_call *call, grpc_completion_queue *cq) |
|
grpc_call_error | grpc_call_start_batch (grpc_call *call, const grpc_op *ops, size_t nops, void *tag, void *reserved) |
|
grpc_call_error | grpc_call_start_batch_and_execute (grpc_call *call, const grpc_op *ops, size_t nops, grpc_closure *closure) |
|
grpc_compression_algorithm | grpc_call_test_only_get_compression_algorithm (grpc_call *call) |
|
uint32_t | grpc_call_test_only_get_encodings_accepted_by_peer (grpc_call *call) |
|
uint32_t | grpc_call_test_only_get_message_flags (grpc_call *call) |
|
void | grpc_call_unref (grpc_call *c) |
|
◆ grpc_call_arena_alloc()
void* grpc_call_arena_alloc |
( |
grpc_call * |
call, |
|
|
size_t |
size |
|
) |
| |
Allocate memory in the grpc_call arena: this memory is automatically discarded at call completion
Definition at line 1749 of file call.cc.
◆ grpc_call_cancel()
Error handling for grpc_call Most grpc_call functions return a grpc_error. If the error is not GRPC_OK then the operation failed due to some unsatisfied precondition. If a grpc_call fails, it's guaranteed that no change to the call state has been made. Cancel an RPC. Can be called multiple times, from any thread. THREAD-SAFETY grpc_call_cancel and grpc_call_cancel_with_status are thread-safe, and can be called at any point before grpc_call_unref is called.
Definition at line 1782 of file call.cc.
◆ grpc_call_cancel_internal()
void grpc_call_cancel_internal |
( |
grpc_call * |
call | ) |
|
◆ grpc_call_cancel_with_status()
Cancel an RPC. Can be called multiple times, from any thread. If a status has not been received for the call, set it to the status code and description passed in. Importantly, this function does not send status nor description to the remote endpoint. Note that description doesn't need be a static string. It doesn't need to be alive after the call to grpc_call_cancel_with_status completes.
Definition at line 1791 of file call.cc.
◆ grpc_call_compression_for_level()
◆ grpc_call_context_get()
◆ grpc_call_context_set()
◆ grpc_call_create()
◆ grpc_call_error_to_string()
Convert grpc_call_error values to a string
Definition at line 1884 of file call.cc.
◆ grpc_call_failed_before_recv_message()
◆ grpc_call_from_top_element()
◆ grpc_call_get_arena()
◆ grpc_call_get_call_stack()
◆ grpc_call_get_initial_size_estimate()
size_t grpc_call_get_initial_size_estimate |
( |
| ) |
|
◆ grpc_call_get_peer()
Returns a newly allocated string representing the endpoint to which this call is communicating with. The string is in the uri format accepted by grpc_channel_create. The returned string should be disposed of with gpr_free().
WARNING: this value is never authenticated or subject to any security related code. It must not be used for any authentication related functionality. Instead, use grpc_auth_context.
Definition at line 1774 of file call.cc.
◆ grpc_call_is_client()
◆ grpc_call_is_trailers_only()
◆ grpc_call_ref()
Ref a call. THREAD SAFETY: grpc_call_ref is thread-compatible
Definition at line 1768 of file call.cc.
◆ grpc_call_server_authority()
◆ grpc_call_set_completion_queue()
◆ grpc_call_start_batch()
Start a batch of operations defined in the array ops; when complete, post a completion of type 'tag' to the completion queue bound to the call. The order of ops specified in the batch has no significance. Only one operation of each type can be active at once in any given batch. If a call to grpc_call_start_batch returns GRPC_CALL_OK you must call grpc_completion_queue_next or grpc_completion_queue_pluck on the completion queue associated with 'call' for work to be performed. If a call to grpc_call_start_batch returns any value other than GRPC_CALL_OK it is guaranteed that no state associated with 'call' is changed and it is not appropriate to call grpc_completion_queue_next or grpc_completion_queue_pluck consequent to the failed grpc_call_start_batch call. If a call to grpc_call_start_batch with an empty batch returns GRPC_CALL_OK, the tag is put in the completion queue immediately. THREAD SAFETY: access to grpc_call_start_batch in multi-threaded environment needs to be synchronized. As an optimization, you may synchronize batches containing just send operations independently from batches containing just receive operations. Access to grpc_call_start_batch with an empty batch is thread-compatible.
Definition at line 1831 of file call.cc.
◆ grpc_call_start_batch_and_execute()
◆ grpc_call_test_only_get_compression_algorithm()
Return the message compression algorithm from call.
- Warning
- This function should only be used in test code.
Definition at line 1810 of file call.cc.
◆ grpc_call_test_only_get_encodings_accepted_by_peer()
Returns a bitset for the encodings (compression algorithms) supported by call's peer.
To be indexed by grpc_compression_algorithm enum values.
Definition at line 1819 of file call.cc.
◆ grpc_call_test_only_get_message_flags()
Return the message flags from call.
- Warning
- This function should only be used in test code.
Definition at line 1815 of file call.cc.
◆ grpc_call_unref()
Unref a call. THREAD SAFETY: grpc_call_unref is thread-compatible
Definition at line 1770 of file call.cc.
◆ call
◆ dest_
◆ finish_batch
◆ grpc_call_error_trace
◆ grpc_compression_trace
◆ start_batch