Classes | Namespaces | Functions
src/core/lib/surface/channel.h File Reference
#include <grpc/support/port_platform.h>
#include <stddef.h>
#include <stdint.h>
#include <atomic>
#include <map>
#include <string>
#include <utility>
#include "absl/base/thread_annotations.h"
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "absl/types/optional.h"
#include <grpc/event_engine/memory_allocator.h>
#include <grpc/impl/codegen/compression_types.h>
#include <grpc/impl/codegen/grpc_types.h>
#include <grpc/slice.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/channel/channel_fwd.h"
#include "src/core/lib/channel/channel_stack.h"
#include "src/core/lib/channel/channel_stack_builder.h"
#include "src/core/lib/channel/channelz.h"
#include "src/core/lib/gprpp/cpp_impl_of.h"
#include "src/core/lib/gprpp/debug_location.h"
#include "src/core/lib/gprpp/ref_counted.h"
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/gprpp/sync.h"
#include "src/core/lib/gprpp/time.h"
#include "src/core/lib/iomgr/iomgr_fwd.h"
#include "src/core/lib/resource_quota/memory_quota.h"
#include "src/core/lib/slice/slice.h"
#include "src/core/lib/surface/channel_stack_type.h"
#include "src/core/lib/transport/transport_fwd.h"
Include dependency graph for src/core/lib/surface/channel.h:

Go to the source code of this file.

Classes

struct  grpc_core::CallRegistrationTable
 
class  grpc_core::Channel
 
struct  grpc_core::RegisteredCall
 

Namespaces

 grpc_core
 

Functions

grpc_compression_options grpc_channel_compression_options (const grpc_channel *channel)
 
grpc_callgrpc_channel_create_pollset_set_call (grpc_channel *channel, grpc_call *parent_call, uint32_t propagation_mask, grpc_pollset_set *pollset_set, const grpc_slice &method, const grpc_slice *host, grpc_core::Timestamp deadline, void *reserved)
 
void grpc_channel_destroy_internal (grpc_channel *channel)
 
size_t grpc_channel_get_call_size_estimate (grpc_channel *channel)
 
grpc_channel_stackgrpc_channel_get_channel_stack (grpc_channel *channel)
 
grpc_core::channelz::ChannelNodegrpc_channel_get_channelz_node (grpc_channel *channel)
 
void grpc_channel_internal_ref (grpc_channel *channel, const char *reason)
 
void grpc_channel_internal_unref (grpc_channel *channel, const char *reason)
 
void grpc_channel_ping (grpc_channel *channel, grpc_completion_queue *cq, void *tag, void *reserved)
 
void grpc_channel_update_call_size_estimate (grpc_channel *channel, size_t size)
 

Function Documentation

◆ grpc_channel_compression_options()

grpc_compression_options grpc_channel_compression_options ( const grpc_channel channel)
inline

Definition at line 173 of file src/core/lib/surface/channel.h.

◆ grpc_channel_create_pollset_set_call()

grpc_call* grpc_channel_create_pollset_set_call ( grpc_channel channel,
grpc_call parent_call,
uint32_t  propagation_mask,
grpc_pollset_set pollset_set,
const grpc_slice method,
const grpc_slice host,
grpc_core::Timestamp  deadline,
void *  reserved 
)

Create a call given a grpc_channel, in order to call method. Progress is tied to activity on pollset_set. The returned call object is meant to be used with grpc_call_start_batch_and_execute, which relies on callbacks to signal completions. method and host need only live through the invocation of this function. If parent_call is non-NULL, it must be a server-side call. It will be used to propagate properties from the server call to this new client call, depending on the value of propagation_mask (see propagation_bits.h for possible values)

Definition at line 331 of file channel.cc.

◆ grpc_channel_destroy_internal()

void grpc_channel_destroy_internal ( grpc_channel channel)

The same as grpc_channel_destroy, but doesn't create an ExecCtx, and so is safe to use from within core.

Definition at line 425 of file channel.cc.

◆ grpc_channel_get_call_size_estimate()

size_t grpc_channel_get_call_size_estimate ( grpc_channel channel)

◆ grpc_channel_get_channel_stack()

grpc_channel_stack * grpc_channel_get_channel_stack ( grpc_channel channel)
inline

Get a (borrowed) pointer to this channels underlying channel stack

Definition at line 178 of file src/core/lib/surface/channel.h.

◆ grpc_channel_get_channelz_node()

grpc_core::channelz::ChannelNode * grpc_channel_get_channelz_node ( grpc_channel channel)
inline

Definition at line 183 of file src/core/lib/surface/channel.h.

◆ grpc_channel_internal_ref()

void grpc_channel_internal_ref ( grpc_channel channel,
const char *  reason 
)
inline

Definition at line 188 of file src/core/lib/surface/channel.h.

◆ grpc_channel_internal_unref()

void grpc_channel_internal_unref ( grpc_channel channel,
const char *  reason 
)
inline

Definition at line 192 of file src/core/lib/surface/channel.h.

◆ grpc_channel_ping()

void grpc_channel_ping ( grpc_channel channel,
grpc_completion_queue cq,
void *  tag,
void *  reserved 
)

Definition at line 52 of file channel_ping.cc.

◆ grpc_channel_update_call_size_estimate()

void grpc_channel_update_call_size_estimate ( grpc_channel channel,
size_t  size 
)


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