passthru_endpoint.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2016 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #ifndef PASSTHRU_ENDPOINT_H
20 #define PASSTHRU_ENDPOINT_H
21 
22 #include <grpc/support/atm.h>
23 
25 
26 /* The struct is refcounted, always use grpc_passthru_endpoint_stats_create and
27  * grpc_passthru_endpoint_stats_destroy, rather then embedding it in your
28  * objects by value. */
29 typedef struct {
33 
34 typedef struct {
39 
43  bool simulate_channel_actions = false);
44 
46 
48 
50  grpc_endpoint* ep,
51  const std::vector<grpc_passthru_endpoint_channel_action>& actions);
52 
53 #endif // PASSTHRU_ENDPOINT_H
grpc_passthru_endpoint_create
void grpc_passthru_endpoint_create(grpc_endpoint **client, grpc_endpoint **server, grpc_passthru_endpoint_stats *stats, bool simulate_channel_actions=false)
Definition: passthru_endpoint.cc:413
grpc_passthru_endpoint_channel_action
Definition: passthru_endpoint.h:34
grpc_passthru_endpoint_channel_action::add_n_writable_bytes
uint64_t add_n_writable_bytes
Definition: passthru_endpoint.h:36
client
Definition: examples/python/async_streaming/client.py:1
grpc_passthru_endpoint_stats::num_writes
gpr_atm num_writes
Definition: passthru_endpoint.h:31
grpc_passthru_endpoint_stats::refs
gpr_refcount refs
Definition: passthru_endpoint.h:30
gpr_refcount
Definition: impl/codegen/sync_generic.h:39
start_scheduling_grpc_passthru_endpoint_channel_effects
void start_scheduling_grpc_passthru_endpoint_channel_effects(grpc_endpoint *ep, const std::vector< grpc_passthru_endpoint_channel_action > &actions)
Definition: passthru_endpoint.cc:495
gen_stats_data.stats
list stats
Definition: gen_stats_data.py:58
uint64_t
unsigned __int64 uint64_t
Definition: stdint-msvc2008.h:90
grpc_passthru_endpoint_stats_destroy
void grpc_passthru_endpoint_stats_destroy(grpc_passthru_endpoint_stats *stats)
Definition: passthru_endpoint.cc:449
grpc_passthru_endpoint_stats
Definition: passthru_endpoint.h:29
grpc_passthru_endpoint_stats_create
grpc_passthru_endpoint_stats * grpc_passthru_endpoint_stats_create()
Definition: passthru_endpoint.cc:440
grpc_passthru_endpoint_channel_action::add_n_readable_bytes
uint64_t add_n_readable_bytes
Definition: passthru_endpoint.h:37
gpr_atm
intptr_t gpr_atm
Definition: impl/codegen/atm_gcc_atomic.h:32
server
Definition: examples/python/async_streaming/server.py:1
grpc_passthru_endpoint_channel_action::wait_ms
uint64_t wait_ms
Definition: passthru_endpoint.h:35
atm.h
endpoint.h
grpc_endpoint
Definition: endpoint.h:105


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:50