34 #ifndef GRPC_INTERNAL_CORE_TRANSPORT_TRANSPORT_H
35 #define GRPC_INTERNAL_CORE_TRANSPORT_TRANSPORT_H
114 const void *server_data);
138 const void *server_data,
Definition: transport.h:59
grpc_connectivity_state
Connectivity state of a channel.
Definition: grpc.h:145
int grpc_transport_init_stream(grpc_transport *transport, grpc_stream *stream, const void *server_data, grpc_transport_stream_op *initial_op)
Definition: transport.c:47
void grpc_transport_perform_op(grpc_transport *transport, grpc_transport_op *op)
Definition: transport.c:60
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:65
Definition: transport.h:55
void grpc_transport_ping(grpc_transport *transport, grpc_iomgr_closure *cb)
gpr_slice * goaway_message
Definition: transport.h:110
void grpc_transport_stream_op_add_cancellation(grpc_transport_stream_op *op, grpc_status_code status)
Definition: transport.c:87
struct grpc_stream grpc_stream
Definition: transport.h:50
size_t grpc_transport_stream_size(grpc_transport *transport)
Definition: transport.c:39
Definition: transport.h:66
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:43
grpc_stream_state * recv_state
Definition: transport.h:74
Definition: transport.h:61
Definition: pollset_posix.h:55
char * grpc_transport_get_peer(grpc_transport *transport)
Definition: transport.c:70
grpc_pollset_set * bind_pollset_set
add this transport to a pollset_set
Definition: transport.h:119
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:98
void grpc_transport_stream_op_add_close(grpc_transport_stream_op *op, grpc_status_code status, gpr_slice *optional_message)
Definition: transport.c:117
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:100
grpc_stream_state
Definition: transport.h:53
void grpc_transport_close(grpc_transport *transport)
void * set_accept_stream_user_data
Definition: transport.h:115
grpc_connectivity_state * connectivity_state
Definition: transport.h:101
grpc_iomgr_closure * on_consumed
Definition: transport.h:67
grpc_status_code goaway_status
what should the goaway contain?
Definition: transport.h:109
grpc_stream_op_buffer * send_ops
Definition: transport.h:69
grpc_status_code cancel_with_status
If != GRPC_STATUS_OK, cancel this stream.
Definition: transport.h:84
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:113
grpc_status_code close_with_status
If != GRPC_STATUS_OK, send grpc-status, grpc-message, and close this stream for both reading and writ...
Definition: transport.h:88
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:117
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:107
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:54
Definition: pollset_set_posix.h:40
Definition: transport_impl.h:67
int disconnect
should the transport be disconnected
Definition: transport.h:103
A stream op buffer is a wrapper around stream operations that is dynamically extendable.
Definition: stream_op.h:177
grpc_call_context_element * context
Definition: transport.h:92
Transport op: a set of operations to perform on a transport as a whole.
Definition: transport.h:96
gpr_slice * optional_close_message
Definition: transport.h:89
void grpc_transport_stream_op_finish_with_failure(grpc_transport_stream_op *op)
Definition: transport.c:74
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:121