More packet validation for google protocol buffers.
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include <map>
|
||||
|
||||
class NetPacket;
|
||||
class NetGameInfo;
|
||||
|
||||
class NetPacketValidator
|
||||
{
|
||||
@@ -119,6 +120,8 @@ protected:
|
||||
static bool ValidateReportGameAckMessage(const NetPacket &packet);
|
||||
static bool ValidateErrorMessage(const NetPacket &packet);
|
||||
|
||||
static bool ValidateGameInfo(const NetGameInfo &gameInfo);
|
||||
|
||||
typedef bool (*ValidateFunctor)(const NetPacket &);
|
||||
typedef std::map<int, ValidateFunctor> ValidateFunctorMap;
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user