isValid method

bool isValid(
  1. DCUtRMessage msg
)

Validate a received DCUtR message.

Implementation

bool isValid(DCUtRMessage msg) {
  return msg.type == typeConnect || msg.type == typeSync;
}