|
|
|
@ -36,13 +36,13 @@ |
|
|
|
|
|
|
|
|
|
#include <grpc/status.h> |
|
|
|
|
|
|
|
|
|
#include <stddef.h> |
|
|
|
|
#include <grpc/byte_buffer.h> |
|
|
|
|
#include <grpc/support/slice.h> |
|
|
|
|
#include <grpc/support/time.h> |
|
|
|
|
#include <grpc/impl/codegen/connectivity_state.h> |
|
|
|
|
#include <grpc/impl/codegen/propagation_bits.h> |
|
|
|
|
#include <grpc/impl/codegen/grpc_types.h> |
|
|
|
|
#include <grpc/impl/codegen/propagation_bits.h> |
|
|
|
|
#include <grpc/support/slice.h> |
|
|
|
|
#include <grpc/support/time.h> |
|
|
|
|
#include <stddef.h> |
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
extern "C" { |
|
|
|
@ -154,9 +154,8 @@ GRPCAPI void grpc_alarm_cancel(grpc_alarm *alarm); |
|
|
|
|
GRPCAPI void grpc_alarm_destroy(grpc_alarm *alarm); |
|
|
|
|
|
|
|
|
|
/** Check the connectivity state of a channel. */ |
|
|
|
|
GRPCAPI grpc_connectivity_state |
|
|
|
|
grpc_channel_check_connectivity_state(grpc_channel *channel, |
|
|
|
|
int try_to_connect); |
|
|
|
|
GRPCAPI grpc_connectivity_state grpc_channel_check_connectivity_state( |
|
|
|
|
grpc_channel *channel, int try_to_connect); |
|
|
|
|
|
|
|
|
|
/** Watch for a change in connectivity state.
|
|
|
|
|
Once the channel connectivity state is different from last_observed_state, |
|
|
|
@ -267,9 +266,10 @@ GRPCAPI grpc_call_error grpc_call_cancel(grpc_call *call, void *reserved); |
|
|
|
|
and description passed in. |
|
|
|
|
Importantly, this function does not send status nor description to the |
|
|
|
|
remote endpoint. */ |
|
|
|
|
GRPCAPI grpc_call_error |
|
|
|
|
grpc_call_cancel_with_status(grpc_call *call, grpc_status_code status, |
|
|
|
|
const char *description, void *reserved); |
|
|
|
|
GRPCAPI grpc_call_error grpc_call_cancel_with_status(grpc_call *call, |
|
|
|
|
grpc_status_code status, |
|
|
|
|
const char *description, |
|
|
|
|
void *reserved); |
|
|
|
|
|
|
|
|
|
/** Destroy a call.
|
|
|
|
|
THREAD SAFETY: grpc_call_destroy is thread-compatible */ |
|
|
|
@ -283,13 +283,11 @@ GRPCAPI void grpc_call_destroy(grpc_call *call); |
|
|
|
|
to \a cq_bound_to_call. |
|
|
|
|
Note that \a cq_for_notification must have been registered to the server via |
|
|
|
|
\a grpc_server_register_completion_queue. */ |
|
|
|
|
GRPCAPI grpc_call_error |
|
|
|
|
grpc_server_request_call(grpc_server *server, grpc_call **call, |
|
|
|
|
grpc_call_details *details, |
|
|
|
|
grpc_metadata_array *request_metadata, |
|
|
|
|
grpc_completion_queue *cq_bound_to_call, |
|
|
|
|
grpc_completion_queue *cq_for_notification, |
|
|
|
|
void *tag_new); |
|
|
|
|
GRPCAPI grpc_call_error grpc_server_request_call( |
|
|
|
|
grpc_server *server, grpc_call **call, grpc_call_details *details, |
|
|
|
|
grpc_metadata_array *request_metadata, |
|
|
|
|
grpc_completion_queue *cq_bound_to_call, |
|
|
|
|
grpc_completion_queue *cq_for_notification, void *tag_new); |
|
|
|
|
|
|
|
|
|
/** Registers a method in the server.
|
|
|
|
|
Methods to this (host, method) pair will not be reported by |
|
|
|
|