9 if (Header.size() != 2)
12 bool final = (Header[0] & 0x80) != 0;
13 auto code =
static_cast<WSOpCode>(Header[0] & 0x0F);
14 bool masked = (Header[1] & 0x80) != 0;
15 uint64_t length = (Header[1] & 0x7F);
16 bool invalid = (Header[0] & 0x70) != 0;
17 return std::shared_ptr<MythWebSocketFrame>(
new MythWebSocketFrame(invalid, code,
final, masked, length));
21 bool Masked, uint64_t Length)