GRPC C++  1.39.1
Namespaces | Macros | Functions | Variables
lame_client.cc File Reference
#include <grpc/support/port_platform.h>
#include <grpc/grpc.h>
#include <string.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include "src/core/lib/channel/channel_stack.h"
#include "src/core/lib/gprpp/atomic.h"
#include "src/core/lib/surface/api_trace.h"
#include "src/core/lib/surface/call.h"
#include "src/core/lib/surface/channel.h"
#include "src/core/lib/surface/lame_client.h"
#include "src/core/lib/transport/connectivity_state.h"
#include "src/core/lib/transport/static_metadata.h"

Namespaces

 grpc_core
 Round Robin Policy.
 

Macros

#define GRPC_ARG_LAME_FILTER_ERROR   "grpc.lame_filter_error"
 
#define CHANNEL_STACK_FROM_CHANNEL(c)   ((grpc_channel_stack*)((c) + 1))
 

Functions

grpc_arg grpc_core::MakeLameClientErrorArg (grpc_error_handle error)
 
grpc_channelgrpc_lame_client_channel_create (const char *target, grpc_status_code error_code, const char *error_message)
 Create a lame client: this client fails every operation attempted on it. More...
 

Variables

const grpc_channel_filter grpc_lame_filter
 

Macro Definition Documentation

◆ CHANNEL_STACK_FROM_CHANNEL

#define CHANNEL_STACK_FROM_CHANNEL (   c)    ((grpc_channel_stack*)((c) + 1))

◆ GRPC_ARG_LAME_FILTER_ERROR

#define GRPC_ARG_LAME_FILTER_ERROR   "grpc.lame_filter_error"

Function Documentation

◆ grpc_lame_client_channel_create()

grpc_channel* grpc_lame_client_channel_create ( const char *  target,
grpc_status_code  error_code,
const char *  error_message 
)

Create a lame client: this client fails every operation attempted on it.

Variable Documentation

◆ call_combiner

CallCombiner* call_combiner

◆ error

◆ grpc_lame_filter

const grpc_channel_filter grpc_lame_filter
Initial value:
= {
grpc_core::lame_start_transport_stream_op_batch,
grpc_core::lame_start_transport_op,
sizeof(grpc_core::CallData),
grpc_core::lame_init_call_elem,
grpc_core::lame_destroy_call_elem,
sizeof(grpc_core::ChannelData),
grpc_core::lame_init_channel_elem,
grpc_core::lame_destroy_channel_elem,
grpc_core::lame_get_channel_info,
"lame-client",
}
void grpc_call_stack_ignore_set_pollset_or_pollset_set(grpc_call_element *, grpc_polling_entity *)
Definition: channel_stack.cc:218

◆ mu

Mutex mu

◆ state_tracker

ConnectivityStateTracker state_tracker