GRPC Core
43.0.0
|
#include <stddef.h>
#include <grpc/impl/channel_arg_names.h>
#include <grpc/impl/compression_types.h>
#include <grpc/slice.h>
#include <grpc/status.h>
#include <grpc/support/port_platform.h>
#include <grpc/support/time.h>
Go to the source code of this file.
Data Structures | |
struct | grpc_byte_buffer |
union | grpc_byte_buffer::grpc_byte_buffer_data |
struct | grpc_byte_buffer::grpc_byte_buffer_data::grpc_compressed_buffer |
struct | grpc_arg_pointer_vtable |
struct | grpc_arg |
A single argument... More... | |
union | grpc_arg::grpc_arg_value |
struct | grpc_arg::grpc_arg_value::grpc_arg_pointer |
struct | grpc_channel_args |
An array of arguments that can be passed around. More... | |
struct | grpc_metadata |
A single metadata element. More... | |
struct | grpc_event |
The result of an operation. More... | |
struct | grpc_metadata_array |
struct | grpc_call_details |
struct | grpc_op |
Operation data: one field for each op type (except SEND_CLOSE_FROM_CLIENT which has no arguments) More... | |
union | grpc_op::grpc_op_data |
struct | grpc_op::grpc_op_data::grpc_op_send_initial_metadata |
struct | grpc_op::grpc_op_data::grpc_op_send_initial_metadata::grpc_op_send_initial_metadata_maybe_compression_level |
If is_set, compression_level will be used for the call. More... | |
struct | grpc_op::grpc_op_data::grpc_op_send_message |
struct | grpc_op::grpc_op_data::grpc_op_send_status_from_server |
struct | grpc_op::grpc_op_data::grpc_op_recv_initial_metadata |
ownership of the array is with the caller, but ownership of the elements stays with the call object (ie key, value members are owned by the call object, recv_initial_metadata->array is owned by the caller). More... | |
struct | grpc_op::grpc_op_data::grpc_op_recv_message |
ownership of the byte buffer is moved to the caller; the caller must call grpc_byte_buffer_destroy on this value, or reuse it in a future op. More... | |
struct | grpc_op::grpc_op_data::grpc_op_recv_status_on_client |
struct | grpc_op::grpc_op_data::grpc_op_recv_close_on_server |
struct | grpc_channel_info |
Information requested from the channel. More... | |
struct | grpc_completion_queue_functor |
Specifies an interface class to be used as a tag for callback-based completion queues. More... | |
struct | grpc_completion_queue_attributes |
Macros | |
#define | GRPC_DEFAULT_MAX_SEND_MESSAGE_LENGTH (-1) |
Default send/receive message size limits in bytes. More... | |
#define | GRPC_DEFAULT_MAX_RECV_MESSAGE_LENGTH (4 * 1024 * 1024) |
#define | GRPC_WRITE_BUFFER_HINT (0x00000001u) |
Write Flags: More... | |
#define | GRPC_WRITE_NO_COMPRESS (0x00000002u) |
Force compression to be disabled for a particular write (start_write/add_metadata). More... | |
#define | GRPC_WRITE_THROUGH (0x00000004u) |
Force this message to be written to the socket before completing it. More... | |
#define | GRPC_WRITE_USED_MASK (GRPC_WRITE_BUFFER_HINT | GRPC_WRITE_NO_COMPRESS | GRPC_WRITE_THROUGH) |
Mask of all valid flags. More... | |
#define | GRPC_INITIAL_METADATA_WAIT_FOR_READY (0x00000020u) |
Initial metadata flags. More... | |
#define | GRPC_INITIAL_METADATA_WAIT_FOR_READY_EXPLICITLY_SET (0x00000080u) |
Signal that GRPC_INITIAL_METADATA_WAIT_FOR_READY was explicitly set by the calling application. More... | |
#define | GRPC_INITIAL_METADATA_USED_MASK |
Mask of all valid flags. More... | |
#define | GRPC_CQ_CURRENT_VERSION 2 |
#define | GRPC_CQ_VERSION_MINIMUM_FOR_CALLBACKABLE 2 |
Typedefs | |
typedef struct grpc_byte_buffer | grpc_byte_buffer |
typedef struct grpc_completion_queue | grpc_completion_queue |
Completion Queues enable notification of the completion of asynchronous actions. More... | |
typedef struct grpc_channel | grpc_channel |
The Channel interface allows creation of Call objects. More... | |
typedef struct grpc_server | grpc_server |
A server listens to some port and responds to request calls. More... | |
typedef struct grpc_call | grpc_call |
A Call represents an RPC. More... | |
typedef struct grpc_socket_mutator | grpc_socket_mutator |
The Socket Mutator interface allows changes on socket options. More... | |
typedef struct grpc_socket_factory | grpc_socket_factory |
The Socket Factory interface creates and binds sockets. More... | |
typedef struct grpc_arg_pointer_vtable | grpc_arg_pointer_vtable |
typedef enum grpc_call_error | grpc_call_error |
Result of a grpc call. More... | |
typedef struct grpc_metadata | grpc_metadata |
A single metadata element. More... | |
typedef enum grpc_completion_type | grpc_completion_type |
The type of completion (for grpc_event) More... | |
typedef struct grpc_event | grpc_event |
The result of an operation. More... | |
typedef struct grpc_op | grpc_op |
Operation data: one field for each op type (except SEND_CLOSE_FROM_CLIENT which has no arguments) More... | |
typedef struct grpc_resource_quota | grpc_resource_quota |
typedef struct grpc_completion_queue_functor | grpc_completion_queue_functor |
Specifies an interface class to be used as a tag for callback-based completion queues. More... | |
typedef struct grpc_completion_queue_attributes | grpc_completion_queue_attributes |
typedef struct grpc_completion_queue_factory | grpc_completion_queue_factory |
The completion queue factory structure is opaque to the callers of grpc. More... | |
#define GRPC_CQ_CURRENT_VERSION 2 |
#define GRPC_CQ_VERSION_MINIMUM_FOR_CALLBACKABLE 2 |
#define GRPC_DEFAULT_MAX_RECV_MESSAGE_LENGTH (4 * 1024 * 1024) |
#define GRPC_DEFAULT_MAX_SEND_MESSAGE_LENGTH (-1) |
Default send/receive message size limits in bytes.
-1 for unlimited. TODO(roth) Make this match the default receive limit after next release
#define GRPC_INITIAL_METADATA_USED_MASK |
Mask of all valid flags.
#define GRPC_INITIAL_METADATA_WAIT_FOR_READY (0x00000020u) |
Initial metadata flags.
These flags are to be passed to the grpc_op::flags
field Signal that the call should not return UNAVAILABLE before it has started
#define GRPC_INITIAL_METADATA_WAIT_FOR_READY_EXPLICITLY_SET (0x00000080u) |
Signal that GRPC_INITIAL_METADATA_WAIT_FOR_READY was explicitly set by the calling application.
#define GRPC_WRITE_BUFFER_HINT (0x00000001u) |
Write Flags:
Hint that the write may be buffered and need not go out on the wire immediately. GRPC is free to buffer the message until the next non-buffered write, or until writes_done, but it need not buffer completely or at all.
#define GRPC_WRITE_NO_COMPRESS (0x00000002u) |
Force compression to be disabled for a particular write (start_write/add_metadata).
Illegal on invoke/accept.
#define GRPC_WRITE_THROUGH (0x00000004u) |
Force this message to be written to the socket before completing it.
#define GRPC_WRITE_USED_MASK (GRPC_WRITE_BUFFER_HINT | GRPC_WRITE_NO_COMPRESS | GRPC_WRITE_THROUGH) |
Mask of all valid flags.
typedef struct grpc_arg_pointer_vtable grpc_arg_pointer_vtable |
typedef struct grpc_byte_buffer grpc_byte_buffer |
A Call represents an RPC.
When created, it is in a configuration state allowing properties to be set until it is invoked. After invoke, the Call can have messages written to it and read from it.
typedef enum grpc_call_error grpc_call_error |
Result of a grpc call.
If the caller satisfies the prerequisites of a particular operation, the grpc_call_error returned will be GRPC_CALL_OK. Receiving any other value listed here is an indication of a bug in the caller.
typedef struct grpc_channel grpc_channel |
The Channel interface allows creation of Call objects.
typedef struct grpc_completion_queue grpc_completion_queue |
Completion Queues enable notification of the completion of asynchronous actions.
typedef struct grpc_completion_queue_attributes grpc_completion_queue_attributes |
typedef struct grpc_completion_queue_factory grpc_completion_queue_factory |
The completion queue factory structure is opaque to the callers of grpc.
typedef struct grpc_completion_queue_functor grpc_completion_queue_functor |
Specifies an interface class to be used as a tag for callback-based completion queues.
This can be used directly, as the first element of a struct in C, or as a base class in C++. Its "run" value should be assigned to some non-member function, such as a static method.
typedef enum grpc_completion_type grpc_completion_type |
The type of completion (for grpc_event)
typedef struct grpc_event grpc_event |
The result of an operation.
Returned by a completion queue when the operation started with tag.
typedef struct grpc_metadata grpc_metadata |
A single metadata element.
Operation data: one field for each op type (except SEND_CLOSE_FROM_CLIENT which has no arguments)
typedef struct grpc_resource_quota grpc_resource_quota |
typedef struct grpc_server grpc_server |
A server listens to some port and responds to request calls.
typedef struct grpc_socket_factory grpc_socket_factory |
The Socket Factory interface creates and binds sockets.
typedef struct grpc_socket_mutator grpc_socket_mutator |
The Socket Mutator interface allows changes on socket options.
enum grpc_arg_type |
Type specifier for grpc_arg.
Enumerator | |
---|---|
GRPC_ARG_STRING | |
GRPC_ARG_INTEGER | |
GRPC_ARG_POINTER |
enum grpc_call_error |
Result of a grpc call.
If the caller satisfies the prerequisites of a particular operation, the grpc_call_error returned will be GRPC_CALL_OK. Receiving any other value listed here is an indication of a bug in the caller.
enum grpc_completion_type |
The type of completion (for grpc_event)
Enumerator | |
---|---|
GRPC_QUEUE_SHUTDOWN | Shutting down. |
GRPC_QUEUE_TIMEOUT | No event before timeout. |
GRPC_OP_COMPLETE | Operation completion. |
Specifies the type of APIs to use to pop events from the completion queue.
Enumerator | |
---|---|
GRPC_CQ_NEXT | Events are popped out by calling grpc_completion_queue_next() API ONLY. |
GRPC_CQ_PLUCK | Events are popped out by calling grpc_completion_queue_pluck() API ONLY. |
GRPC_CQ_CALLBACK | Events trigger a callback specified as the tag. |
enum grpc_cq_polling_type |
Completion queues internally MAY maintain a set of file descriptors in a structure called 'pollset'.
This enum specifies if a completion queue has an associated pollset and any restrictions on the type of file descriptors that can be present in the pollset.
I/O progress can only be made when grpc_completion_queue_next() or grpc_completion_queue_pluck() are called on the completion queue (unless the grpc_cq_polling_type is GRPC_CQ_NON_POLLING) and hence it is very important to actively call these APIs
Enumerator | |
---|---|
GRPC_CQ_DEFAULT_POLLING | The completion queue will have an associated pollset and there is no restriction on the type of file descriptors the pollset may contain. |
GRPC_CQ_NON_LISTENING | Similar to GRPC_CQ_DEFAULT_POLLING except that the completion queues will not contain any 'listening file descriptors' (i.e file descriptors used to listen to incoming channels) |
GRPC_CQ_NON_POLLING | The completion queue will not have an associated pollset. Note that grpc_completion_queue_next() or grpc_completion_queue_pluck() MUST still be called to pop events from the completion queue; it is not required to call them actively to make I/O progress |
enum grpc_op_type |