frame_data.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2015 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 GRPC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_FRAME_DATA_H
20 #define GRPC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_FRAME_DATA_H
21 
22 /* Parser for GRPC streams embedded in DATA frames */
23 
25 
26 #include <stdint.h>
27 
28 #include "absl/status/status.h"
29 
30 #include <grpc/slice.h>
31 
37 
38 /* start processing a new data frame */
40  uint32_t stream_id,
42 
43 /* handle a slice of a data frame - is_last indicates the last slice of a
44  frame */
48  const grpc_slice& slice,
49  int is_last);
50 
52  uint32_t write_bytes, int is_eof,
55 
57  grpc_chttp2_stream* s, uint32_t* min_progress_size,
58  grpc_core::SliceBuffer* stream_out, uint32_t* message_flags);
59 
60 #endif /* GRPC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_FRAME_DATA_H */
slice.h
outbuf
unsigned char outbuf[SIZE]
Definition: bloaty/third_party/zlib/examples/gun.c:162
grpc_deframe_unprocessed_incoming_frames
grpc_core::Poll< grpc_error_handle > grpc_deframe_unprocessed_incoming_frames(grpc_chttp2_stream *s, uint32_t *min_progress_size, grpc_core::SliceBuffer *stream_out, uint32_t *message_flags)
Definition: frame_data.cc:82
grpc_chttp2_data_parser_begin_frame
absl::Status grpc_chttp2_data_parser_begin_frame(uint8_t flags, uint32_t stream_id, grpc_chttp2_stream *s)
Definition: frame_data.cc:36
grpc_chttp2_encode_data
void grpc_chttp2_encode_data(uint32_t id, grpc_slice_buffer *inbuf, uint32_t write_bytes, int is_eof, grpc_transport_one_way_stats *stats, grpc_slice_buffer *outbuf)
Definition: frame_data.cc:54
uint8_t
unsigned char uint8_t
Definition: stdint-msvc2008.h:78
grpc_chttp2_stream
Definition: src/core/ext/transport/chttp2/transport/internal.h:456
inbuf
unsigned char inbuf[SIZE]
Definition: bloaty/third_party/zlib/examples/gun.c:161
uint32_t
unsigned int uint32_t
Definition: stdint-msvc2008.h:80
asyncio_get_stats.parser
parser
Definition: asyncio_get_stats.py:34
slice
grpc_slice slice
Definition: src/core/lib/surface/server.cc:467
gen_stats_data.stats
list stats
Definition: gen_stats_data.py:58
grpc_slice
Definition: include/grpc/impl/codegen/slice.h:65
grpc_chttp2_data_parser_parse
grpc_error_handle grpc_chttp2_data_parser_parse(void *parser, grpc_chttp2_transport *t, grpc_chttp2_stream *s, const grpc_slice &slice, int is_last)
Definition: frame_data.cc:137
error.h
grpc_transport_one_way_stats
Definition: transport.h:243
stdint.h
frame.h
grpc_core::SliceBuffer
Definition: src/core/lib/slice/slice_buffer.h:44
absl::flags_internal
Definition: abseil-cpp/absl/flags/commandlineflag.h:40
poll.h
absl::Status
Definition: third_party/abseil-cpp/absl/status/status.h:424
grpc_chttp2_transport
Definition: src/core/ext/transport/chttp2/transport/internal.h:238
transport.h
grpc_slice_buffer
Definition: include/grpc/impl/codegen/slice.h:83
grpc_error
Definition: error_internal.h:42
absl::variant
Definition: abseil-cpp/absl/types/internal/variant.h:46
slice_buffer.h
port_platform.h


grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:59:22