Merge pull request #12331 from markdroth/c++_filter_api_fix

Add recv_message() method to TransportStreamOpBatch class.
reviewable/pr11758/r1
Mark D. Roth 7 years ago committed by GitHub
commit 8d51e8d17e
  1. 9
      src/cpp/common/channel_filter.h

@ -195,6 +195,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;
}

Loading…
Cancel
Save