Go to the documentation of this file.
40 static void*
tag(
intptr_t t) {
return reinterpret_cast<void*
>(t); }
49 op->start_connectivity_watch = grpc_core::MakeOrphanable<Watcher>();
55 grpc_schedule_on_exec_ctx);
60 int main(
int argc,
char** argv) {
80 const char* error_message =
"Rpc sent on a lame channel.";
139 GPR_ASSERT(strcmp(peer,
"lampoon:national") == 0);
#define GRPC_CLOSURE_INIT(closure, cb, cb_arg, scheduler)
GPRAPI void grpc_slice_unref(grpc_slice s)
void Notify(grpc_connectivity_state new_state, const absl::Status &) override
grpc_metadata_array * trailing_metadata
gpr_timespec grpc_timeout_seconds_to_deadline(int64_t time_s)
grpc_status_code * status
return memset(p, 0, total)
grpc_channel_element * grpc_channel_stack_element(grpc_channel_stack *channel_stack, size_t index)
struct grpc_op::grpc_op_data::grpc_op_send_initial_metadata send_initial_metadata
GRPCAPI char * grpc_call_get_peer(grpc_call *call)
GRPCAPI grpc_connectivity_state grpc_channel_check_connectivity_state(grpc_channel *channel, int try_to_connect)
GRPCAPI grpc_channel * grpc_lame_client_channel_create(const char *target, grpc_status_code error_code, const char *error_message)
GPRAPI void gpr_free(void *ptr)
static void do_nothing(void *, grpc_error_handle)
@ GRPC_CHANNEL_TRANSIENT_FAILURE
grpc_channel_stack * grpc_channel_get_channel_stack(grpc_channel *channel)
static grpc_closure transport_op_cb
union grpc_op::grpc_op_data data
GRPCAPI void grpc_metadata_array_destroy(grpc_metadata_array *array)
static grpc_metadata_array trailing_metadata_recv
wrapped_grpc_channel * channel
@ GRPC_OP_RECV_INITIAL_METADATA
GRPCAPI void grpc_call_unref(grpc_call *call)
void cq_verifier_destroy(cq_verifier *v)
struct grpc_call grpc_call
GPRAPI grpc_slice grpc_slice_from_static_string(const char *source)
cq_verifier * cq_verifier_create(grpc_completion_queue *cq)
grpc_transport_op * grpc_make_transport_op(grpc_closure *on_complete)
#define CQ_EXPECT_COMPLETION(v, tag, success)
grpc_slice * status_details
static grpc_slice details
GRPCAPI grpc_call * grpc_channel_create_call(grpc_channel *channel, grpc_call *parent_call, uint32_t propagation_mask, grpc_completion_queue *completion_queue, grpc_slice method, const grpc_slice *host, gpr_timespec deadline, void *reserved)
static void * tag(intptr_t t)
#define GRPC_PROPAGATE_DEFAULTS
GRPCAPI void grpc_completion_queue_destroy(grpc_completion_queue *cq)
@ GRPC_OP_SEND_INITIAL_METADATA
grpc_core::ExecCtx exec_ctx
struct grpc_op::grpc_op_data::grpc_op_recv_status_on_client recv_status_on_client
void cq_verify(cq_verifier *v, int timeout_sec)
int main(int argc, char **argv)
GRPCAPI void grpc_channel_destroy(grpc_channel *channel)
struct grpc_channel grpc_channel
GRPCAPI grpc_completion_queue * grpc_completion_queue_create_for_next(void *reserved)
struct grpc_op::grpc_op_data::grpc_op_recv_initial_metadata recv_initial_metadata
GRPCAPI void grpc_init(void)
@ GRPC_OP_RECV_STATUS_ON_CLIENT
GPRAPI int grpc_slice_str_cmp(grpc_slice a, const char *b)
static grpc_metadata_array initial_metadata_recv
GRPCAPI grpc_call_error grpc_call_start_batch(grpc_call *call, const grpc_op *ops, size_t nops, void *tag, void *reserved)
GRPCAPI void grpc_shutdown(void)
void test_transport_op(grpc_channel *channel)
static grpc_completion_queue * cq
GRPCAPI void grpc_metadata_array_init(grpc_metadata_array *array)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:14