Use a template to wrap the other dispatcher_send_message_custom avoiding having to pass a void* opaque and extract payload size from passed type. Will be used more by next commit when Dispatchers are turned into C++.
f680cc78 dispatcher: Add a more safe dispatcher_send_message_custom version
server/dispatcher.h | 11 +++++++++++
server/red-channel.cpp | 5 ++---
2 files changed, 13 insertions(+), 3 deletions(-)