[refactor] Implement generic, validating sendPacket() wrapper

This commit is contained in:
2021-03-19 22:28:25 +01:00
parent ef7d0148c6
commit 688f13e649
6 changed files with 422 additions and 6 deletions

View File

@@ -9,6 +9,14 @@
#include <algorithm>
#include <thread>
/*
* NOTE: Variadic response packets that list group members are technically
* double-variadic, as they have two count members with trailing struct counts,
* and are thus incompatible with the generic sendPacket() wrapper.
* That means we still have to (carefully) use validOutVarPacket() in this
* source file.
*/
using namespace Groups;
static void requestGroup(CNSocket* sock, CNPacketData* data) {