Public Attributes | List of all members
grpc_transport_op Struct Reference

#include <transport.h>

Public Attributes

grpc_pollsetbind_pollset = nullptr
 
grpc_pollset_setbind_pollset_set = nullptr
 
grpc_error_handle disconnect_with_error = GRPC_ERROR_NONE
 
grpc_error_handle goaway_error = GRPC_ERROR_NONE
 
grpc_handler_private_op_data handler_private
 
grpc_closureon_consumed = nullptr
 
bool reset_connect_backoff = false
 
struct {
   grpc_closure *   on_ack = nullptr
 
   grpc_closure *   on_initiate = nullptr
 
send_ping
 
bool set_accept_stream = false
 
void(* set_accept_stream_fn )(void *user_data, grpc_transport *transport, const void *server_data) = nullptr
 
void * set_accept_stream_user_data = nullptr
 
bool set_make_promise = false
 
void(* set_make_promise_fn )(void *user_data, grpc_transport *transport, const void *server_data) = nullptr
 
void * set_make_promise_user_data = nullptr
 
grpc_core::OrphanablePtr< grpc_core::ConnectivityStateWatcherInterfacestart_connectivity_watch
 
grpc_connectivity_state start_connectivity_watch_state = GRPC_CHANNEL_IDLE
 
grpc_core::ConnectivityStateWatcherInterfacestop_connectivity_watch
 

Detailed Description

Transport op: a set of operations to perform on a transport as a whole

Definition at line 452 of file transport.h.

Member Data Documentation

◆ bind_pollset

grpc_pollset* grpc_transport_op::bind_pollset = nullptr

add this transport to a pollset

Definition at line 486 of file transport.h.

◆ bind_pollset_set

grpc_pollset_set* grpc_transport_op::bind_pollset_set = nullptr

add this transport to a pollset_set

Definition at line 488 of file transport.h.

◆ disconnect_with_error

grpc_error_handle grpc_transport_op::disconnect_with_error = GRPC_ERROR_NONE

should the transport be disconnected Error contract: the transport that gets this op must cause disconnect_with_error to be unref'ed after processing it

Definition at line 464 of file transport.h.

◆ goaway_error

grpc_error_handle grpc_transport_op::goaway_error = GRPC_ERROR_NONE

what should the goaway contain? Error contract: the transport that gets this op must cause goaway_error to be unref'ed after processing it

Definition at line 468 of file transport.h.

◆ handler_private

grpc_handler_private_op_data grpc_transport_op::handler_private

Definition at line 504 of file transport.h.

◆ on_ack

grpc_closure* grpc_transport_op::on_ack = nullptr

Called when the ping ack is received

Definition at line 495 of file transport.h.

◆ on_consumed

grpc_closure* grpc_transport_op::on_consumed = nullptr

Called when processing of this op is done.

Definition at line 454 of file transport.h.

◆ on_initiate

grpc_closure* grpc_transport_op::on_initiate = nullptr

Ping may be delayed by the transport, on_initiate callback will be called when the ping is actually being sent.

Definition at line 493 of file transport.h.

◆ reset_connect_backoff

bool grpc_transport_op::reset_connect_backoff = false

Definition at line 498 of file transport.h.

◆ send_ping

struct { ... } grpc_transport_op::send_ping

send a ping, if either on_initiate or on_ack is not NULL

◆ set_accept_stream

bool grpc_transport_op::set_accept_stream = false

set the callback for accepting new streams; this is a permanent callback, unlike the other one-shot closures. If true, the callback is set to set_accept_stream_fn, with its user_data argument set to set_accept_stream_user_data

Definition at line 473 of file transport.h.

◆ set_accept_stream_fn

void(* grpc_transport_op::set_accept_stream_fn) (void *user_data, grpc_transport *transport, const void *server_data) = nullptr

Definition at line 474 of file transport.h.

◆ set_accept_stream_user_data

void* grpc_transport_op::set_accept_stream_user_data = nullptr

Definition at line 476 of file transport.h.

◆ set_make_promise

bool grpc_transport_op::set_make_promise = false

set the callback for accepting new streams based upon promises; this is a permanent callback, unlike the other one-shot closures. If true, the callback is set to set_make_promise_fn, with its user_data argument set to set_make_promise_data

Definition at line 481 of file transport.h.

◆ set_make_promise_fn

void(* grpc_transport_op::set_make_promise_fn) (void *user_data, grpc_transport *transport, const void *server_data) = nullptr

Definition at line 482 of file transport.h.

◆ set_make_promise_user_data

void* grpc_transport_op::set_make_promise_user_data = nullptr

Definition at line 484 of file transport.h.

◆ start_connectivity_watch

grpc_core::OrphanablePtr<grpc_core::ConnectivityStateWatcherInterface> grpc_transport_op::start_connectivity_watch

connectivity monitoring - set connectivity_state to NULL to unsubscribe

Definition at line 457 of file transport.h.

◆ start_connectivity_watch_state

grpc_connectivity_state grpc_transport_op::start_connectivity_watch_state = GRPC_CHANNEL_IDLE

Definition at line 458 of file transport.h.

◆ stop_connectivity_watch

grpc_core::ConnectivityStateWatcherInterface* grpc_transport_op::stop_connectivity_watch
Initial value:
=
nullptr

Definition at line 459 of file transport.h.


The documentation for this struct was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:46