34 #ifndef GRPC_INTERNAL_CORE_TRANSPORT_TRANSPORT_H
35 #define GRPC_INTERNAL_CORE_TRANSPORT_TRANSPORT_H
108 const void *server_data);
132 const void *server_data,
Definition: transport.h:59
grpc_connectivity_state
Connectivity state of a channel.
Definition: grpc.h:139
int grpc_transport_init_stream(grpc_transport *transport, grpc_stream *stream, const void *server_data, grpc_transport_stream_op *initial_op)
Definition: transport.c:45
void grpc_transport_perform_op(grpc_transport *transport, grpc_transport_op *op)
Definition: transport.c:58
int is_last_send
Definition: transport.h:70
grpc_stream_op_buffer * recv_ops
Definition: transport.h:73
void grpc_transport_destroy_stream(grpc_transport *transport, grpc_stream *stream)
Definition: transport.c:63
Definition: transport.h:55
void grpc_transport_ping(grpc_transport *transport, grpc_iomgr_closure *cb)
gpr_slice * goaway_message
Definition: transport.h:104
struct grpc_stream grpc_stream
Definition: transport.h:50
size_t grpc_transport_stream_size(grpc_transport *transport)
Definition: transport.c:37
Definition: transport.h:66
Definition: metadata.h:70
struct grpc_transport_op grpc_transport_op
Transport op: a set of operations to perform on a transport as a whole.
void grpc_transport_destroy(grpc_transport *transport)
Definition: transport.c:41
grpc_stream_state * recv_state
Definition: transport.h:74
Definition: transport.h:61
Definition: pollset_posix.h:48
char * grpc_transport_get_peer(grpc_transport *transport)
Definition: transport.c:68
grpc_pollset_set * bind_pollset_set
add this transport to a pollset_set
Definition: transport.h:113
gpr_uint32 max_recv_bytes
The number of bytes this peer is currently prepared to receive.
Definition: transport.h:78
grpc_iomgr_closure * on_consumed
called when processing of this op is done
Definition: transport.h:92
char * grpc_transport_stream_op_string(grpc_transport_stream_op *op)
Definition: transport_op_string.c:108
grpc_iomgr_closure * on_connectivity_state_change
connectivity monitoring
Definition: transport.h:94
grpc_stream_state
Definition: transport.h:53
void grpc_transport_close(grpc_transport *transport)
void * set_accept_stream_user_data
Definition: transport.h:109
void grpc_transport_stream_op_add_cancellation(grpc_transport_stream_op *op, grpc_status_code status, grpc_mdstr *message)
Definition: transport.c:85
grpc_connectivity_state * connectivity_state
Definition: transport.h:95
grpc_iomgr_closure * on_consumed
Definition: transport.h:67
grpc_status_code goaway_status
what should the goaway contain?
Definition: transport.h:103
grpc_stream_op_buffer * send_ops
Definition: transport.h:69
grpc_status_code cancel_with_status
Definition: transport.h:83
Definition: transport.h:57
A closure over a grpc_iomgr_cb_func.
Definition: iomgr.h:45
void(* set_accept_stream)(void *user_data, grpc_transport *transport, const void *server_data)
set the callback for accepting new streams; this is a permanent callback, unlike the other one-shot c...
Definition: transport.h:107
void grpc_transport_goaway(grpc_transport *transport, grpc_status_code status, gpr_slice debug_data)
grpc_pollset * bind_pollset
add this transport to a pollset
Definition: transport.h:111
grpc_pollset * bind_pollset
Definition: transport.h:81
grpc_iomgr_closure * on_done_recv
Definition: transport.h:79
int send_goaway
should we send a goaway? after a goaway is sent, once there are no more active calls on the transport...
Definition: transport.h:101
grpc_iomgr_closure * on_done_send
Definition: transport.h:71
grpc_status_code
Definition: status.h:41
void grpc_transport_perform_stream_op(grpc_transport *transport, grpc_stream *stream, grpc_transport_stream_op *op)
Definition: transport.c:52
Definition: pollset_set_posix.h:40
Definition: transport_impl.h:67
int disconnect
should the transport be disconnected
Definition: transport.h:97
A stream op buffer is a wrapper around stream operations that is dynamically extendable.
Definition: stream_op.h:176
grpc_call_context_element * context
Definition: transport.h:86
Transport op: a set of operations to perform on a transport as a whole.
Definition: transport.h:90
void grpc_transport_stream_op_finish_with_failure(grpc_transport_stream_op *op)
Definition: transport.c:72
struct grpc_transport_stream_op grpc_transport_stream_op
grpc_iomgr_closure * send_ping
send a ping, call this back if not NULL
Definition: transport.h:115