Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Cooper <tim.cooper@layeh.com>2015-07-24 16:15:37 +0300
committerMikkel Krautz <mikkel@krautz.dk>2016-05-08 17:45:52 +0300
commit1253f77edffd1f93161f3713b87ba8af118f28c2 (patch)
tree5d1985f0cfac703d238f456ee49f67a636676c7a /src/murmur/MurmurGRPCImpl.h
parent8401b5113e74f09925cd50d167955de7768641d5 (diff)
grpc: add helper method "end" to RPCSingleSingleCall
Diffstat (limited to 'src/murmur/MurmurGRPCImpl.h')
-rw-r--r--src/murmur/MurmurGRPCImpl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/murmur/MurmurGRPCImpl.h b/src/murmur/MurmurGRPCImpl.h
index ea4dd95ec..aacd8e4a8 100644
--- a/src/murmur/MurmurGRPCImpl.h
+++ b/src/murmur/MurmurGRPCImpl.h
@@ -187,6 +187,10 @@ public:
virtual void error(const ::grpc::Status &err) {
stream.FinishWithError(err, done());
}
+
+ virtual void end(const OutType &msg = OutType()) {
+ stream.Finish(msg, ::grpc::Status::OK, done());
+ }
};
template <class InType, class OutType>