2 #include "WebSocketCommon.h" 3 #include "ByteBuffer.h" 4 #include "WebSocketFrame.h" 15 bool isRsv1InUse() {
return (flagsInUse & 0x40) != 0; };
16 bool isRsv2InUse() {
return (flagsInUse & 0x20) != 0; };
17 bool isRsv3InUse() {
return (flagsInUse & 0x10) != 0; };
19 void setRsv1InUse(
bool rsv1InUse) {
20 flagsInUse = (byte)((flagsInUse & 0xBF) | (rsv1InUse ? 0x40 : 0x00));
22 void setRsv2InUse(
bool rsv2InUse) {
23 flagsInUse = (byte)((flagsInUse & 0xDF) | (rsv2InUse ? 0x20 : 0x00));
25 void setRsv3InUse(
bool rsv3InUse) {
26 flagsInUse = (byte)((flagsInUse & 0xEF) | (rsv3InUse ? 0x10 : 0x00));
32 void generate(
const char *
code,
int nLength, std::vector<byte>& outData);
define this to enable debugging of NPL code in visual studio
Definition: INPL.h:9
Definition: ByteBuffer.h:47
Definition: WebSocketFrame.h:11
Definition: inftrees.h:24
Definition: WebSocketWriter.h:9