author | Sebastian Harl <sh@tokkee.org> | |
Mon, 2 Nov 2015 23:03:11 +0000 (00:03 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 30 May 2016 21:44:19 +0000 (23:44 +0200) | ||
commit | b43eedf73eab4848a94c42cc8b9cff3349f37171 | |
tree | f3a710a995da851f8dc1b37ef476f064fbf6a239 | tree | snapshot |
parent | fd7ac9a6a47d864bd9663f8da9a10d4ee55578fb | commit | diff |
grpc plugin: Make RPC call implementation more modular.
Use a template class for the RPC call object implementation to handle all
common functionality. The actual RPC implementation has been moved into
overloaded functions, one for each RPC. This approach only works as long as
the request and response type pairs are unique per call. That's common
practice, though, and in case there's an exception, it would have to fall back
to the previous approach (one class per call).
Use a template class for the RPC call object implementation to handle all
common functionality. The actual RPC implementation has been moved into
overloaded functions, one for each RPC. This approach only works as long as
the request and response type pairs are unique per call. That's common
practice, though, and in case there's an exception, it would have to fall back
to the previous approach (one class per call).
src/grpc.cc | diff | blob | history |