diff options
author | 2016-07-27 11:35:56 -0700 | |
---|---|---|
committer | 2016-07-27 11:35:56 -0700 | |
commit | 2d04dd827ce66a54ea8ddc6c691f9c028833fd56 (patch) | |
tree | 6ca6e2c646e9691a07543a13c6d26ca49a970ccd /include/grpc++/impl/codegen/fc_unary.h | |
parent | 0a1c5989868cc7465b384139c137c6df3021f564 (diff) |
Change API for next message size to allow a bool return value for failure
cases.
Diffstat (limited to 'include/grpc++/impl/codegen/fc_unary.h')
-rw-r--r-- | include/grpc++/impl/codegen/fc_unary.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/grpc++/impl/codegen/fc_unary.h b/include/grpc++/impl/codegen/fc_unary.h index 22e40ab02e..768443912b 100644 --- a/include/grpc++/impl/codegen/fc_unary.h +++ b/include/grpc++/impl/codegen/fc_unary.h @@ -56,7 +56,10 @@ template <class RequestType, class ResponseType> public: FCUnary(Call* call, ServerContext* ctx): call_(call), ctx_(ctx), read_done_(false), write_done_(false) {} ~FCUnary() {} - uint32_t NextMessageSize() {return call_->max_message_size();} + bool NextMessageSize(uint32_t *sz) { + *sz = call_->max_message_size(); + return true; + } bool Read(RequestType *request) { if (read_done_) { return false; |