diff options
author | Yang Gao <yangg@google.com> | 2015-02-11 23:14:49 -0800 |
---|---|---|
committer | Yang Gao <yangg@google.com> | 2015-02-11 23:14:49 -0800 |
commit | fd7199f64ec05c46f6aebd8644bbcb78f2889898 (patch) | |
tree | 6a64d5864ff16909a2f6db57b76c652f609020aa /src/cpp | |
parent | 1fe817fffd12bfc91f61941eb4a42ec9de92b43c (diff) |
Add client side WaitForInitialMetadata for streaming.
Diffstat (limited to 'src/cpp')
-rw-r--r-- | src/cpp/common/call.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cpp/common/call.cc b/src/cpp/common/call.cc index a20d4a0d9a..aae69084eb 100644 --- a/src/cpp/common/call.cc +++ b/src/cpp/common/call.cc @@ -121,6 +121,12 @@ void CallOpBuffer::AddSendInitialMetadata( initial_metadata_ = FillMetadataArray(metadata); } +void CallOpBuffer::AddRecvInitialMetadata( + std::multimap<grpc::string, grpc::string>* metadata) { + recv_initial_metadata_ = metadata; +} + + void CallOpBuffer::AddSendInitialMetadata(ClientContext *ctx) { AddSendInitialMetadata(&ctx->send_initial_metadata_); } |