34 #include "../Exception.h" 54 enum Enum { continuation,
text,
binary, reserved1, reserved2, reserved3, reserved4, reserved5, close, ping, pong, reserved6, reserved7, reserved8, reserved9, reserved10 };
94 uint32_t process(
char* buffer, int32_t bufferLength);
112 static void encodeClose(std::vector<char>& output);
115 std::vector<char> _content;
116 uint32_t _oldContentSize = 0;
117 bool _finished =
false;
118 bool _dataProcessingStarted =
false;
119 std::vector<char> _rawHeader;
121 uint32_t processHeader(
char** buffer, int32_t& bufferLength);
122 uint32_t processContent(
char* buffer, int32_t bufferLength);
bool isFinished()
Definition: WebSocket.h:71
Definition: BaseLib.cpp:34
virtual ~WebSocket()
Definition: WebSocket.h:69
WebSocketException(std::string message)
Definition: WebSocket.h:44
std::vector< char > & getContent()
Definition: WebSocket.h:81
Header & getHeader()
Definition: WebSocket.h:83
Definition: WebSocket.h:41
Definition: WebSocket.h:47
bool dataProcessingStarted()
Definition: WebSocket.h:96
uint32_t getContentSize()
Definition: WebSocket.h:82
Base class for all exceptions defined in Homegear.
Definition: Exception.h:41