adds frame UTF8 validation method

This commit is contained in:
Peter Thorson
2011-09-15 06:57:51 -05:00
parent e497984db3
commit 342dbd182d
2 changed files with 22 additions and 4 deletions

View File

@@ -127,6 +127,7 @@ public:
void process_payload();
void process_payload2(); // experiment with more efficient masking code.
bool validate_utf8(uint32_t* state,uint32_t* codep) const;
bool validate_basic_header() const;
void generate_masking_key();
@@ -142,4 +143,4 @@ private:
}
#endif // WEBSOCKET_FRAME_HPP
#endif // WEBSOCKET_FRAME_HPP