Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
z
Classes
Class List
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
grpc
test
core
util
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
24
#include "
src/core/lib/iomgr/endpoint.h
"
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
{
30
gpr_refcount
refs
;
31
gpr_atm
num_writes
;
32
}
grpc_passthru_endpoint_stats
;
33
34
typedef
struct
{
35
uint64_t
wait_ms
;
36
uint64_t
add_n_writable_bytes
;
37
uint64_t
add_n_readable_bytes
;
38
}
grpc_passthru_endpoint_channel_action
;
39
40
void
grpc_passthru_endpoint_create
(
grpc_endpoint
**
client
,
41
grpc_endpoint
**
server
,
42
grpc_passthru_endpoint_stats
*
stats
,
43
bool
simulate_channel_actions =
false
);
44
45
grpc_passthru_endpoint_stats
*
grpc_passthru_endpoint_stats_create
();
46
47
void
grpc_passthru_endpoint_stats_destroy
(
grpc_passthru_endpoint_stats
*
stats
);
48
49
void
start_scheduling_grpc_passthru_endpoint_channel_effects
(
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