diff options
author | Mark D. Roth <roth@google.com> | 2017-08-30 07:34:03 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2017-08-30 07:34:03 -0700 |
commit | 196fa2e154c52ffc5bed76ff8b54093117632811 (patch) | |
tree | 9018602e7f9bf3cec2c2baa94ea89097de8c7de3 | |
parent | b7beb45a2f1fafdf752b0b4b051cf673747a96ad (diff) |
Add recv_message() method to TransportStreamOpBatch class.
-rw-r--r-- | src/cpp/common/channel_filter.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cpp/common/channel_filter.h b/src/cpp/common/channel_filter.h index 5d629f7c14..64a0ba5312 100644 --- a/src/cpp/common/channel_filter.h +++ b/src/cpp/common/channel_filter.h @@ -193,6 +193,15 @@ class TransportStreamOpBatch { op_->payload->send_message.send_message = send_message; } + grpc_byte_stream **recv_message() const { + return op_->recv_message ? op_->payload->recv_message.recv_message + : nullptr; + } + void set_recv_message(grpc_byte_stream **recv_message) { + op_->recv_message = true; + op_->payload->recv_message.recv_message = recv_message; + } + census_context *get_census_context() const { return (census_context *)op_->payload->context[GRPC_CONTEXT_TRACING].value; } |