summaryrefslogtreecommitdiff
path: root/lib/command_match.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2022-02-20 20:30:52 -0500
committerChristian Hopps <chopps@labn.net>2022-03-14 15:54:25 -0400
commit48c93061f581dfea6beda4c9934db2bdb22bc774 (patch)
tree9dd60bb30dd2622ba4847fb0ec80c81077949dad /lib/command_match.c
parent341e1d6e0a1f6524197142e679929bcd52385978 (diff)
lib: grpc: rework RPC handlers improve code clarity
- split NewRpcState object into 2, a Unary and a Streaming variant, which then allows for the next. - move all state machine details inside these new state objects - use a template arg to allow for Streaming state tracking object creation and deletion w/o requiring this in each specific RPC hander. - Code is more rugged by design now. Thanks to Rafael Zalamena <rzalamena@opensourcerouting.org> for the cleanup ideas/motivation. Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/command_match.c')
0 files changed, 0 insertions, 0 deletions