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
third_party
boringssl-with-bazel
src
ssl
test
async_bio.h
Go to the documentation of this file.
1
/* Copyright (c) 2014, Google Inc.
2
*
3
* Permission to use, copy, modify, and/or distribute this software for any
4
* purpose with or without fee is hereby granted, provided that the above
5
* copyright notice and this permission notice appear in all copies.
6
*
7
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
10
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
12
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
13
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
14
15
#ifndef HEADER_ASYNC_BIO
16
#define HEADER_ASYNC_BIO
17
18
#include <
openssl/bio.h
>
19
20
21
// AsyncBioCreate creates a filter BIO for testing asynchronous state
22
// machines which consume a stream socket. Reads and writes will fail
23
// and return EAGAIN unless explicitly allowed. Each async BIO has a
24
// read quota and a write quota. Initially both are zero. As each is
25
// incremented, bytes are allowed to flow through the BIO.
26
bssl::UniquePtr<BIO>
AsyncBioCreate
();
27
28
// AsyncBioCreateDatagram creates a filter BIO for testing for
29
// asynchronous state machines which consume datagram sockets. The read
30
// and write quota count in packets rather than bytes.
31
bssl::UniquePtr<BIO>
AsyncBioCreateDatagram
();
32
33
// AsyncBioAllowRead increments |bio|'s read quota by |count|.
34
void
AsyncBioAllowRead
(
BIO
*bio,
size_t
count
);
35
36
// AsyncBioAllowWrite increments |bio|'s write quota by |count|.
37
void
AsyncBioAllowWrite
(
BIO
*bio,
size_t
count
);
38
39
// AsyncBioEnforceWriteQuota configures where |bio| enforces its write quota.
40
void
AsyncBioEnforceWriteQuota
(
BIO
*bio,
bool
enforce);
41
42
43
#endif // HEADER_ASYNC_BIO
AsyncBioAllowRead
void AsyncBioAllowRead(BIO *bio, size_t count)
Definition:
async_bio.cc:169
bio_st
Definition:
bio.h:822
bio.h
AsyncBioCreateDatagram
bssl::UniquePtr< BIO > AsyncBioCreateDatagram()
Definition:
async_bio.cc:160
AsyncBioCreate
bssl::UniquePtr< BIO > AsyncBioCreate()
Definition:
async_bio.cc:156
count
int * count
Definition:
bloaty/third_party/googletest/googlemock/test/gmock_stress_test.cc:96
AsyncBioEnforceWriteQuota
void AsyncBioEnforceWriteQuota(BIO *bio, bool enforce)
Definition:
async_bio.cc:185
AsyncBioAllowWrite
void AsyncBioAllowWrite(BIO *bio, size_t count)
Definition:
async_bio.cc:177
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:35