Wire Sysio Wire Sysion 1.0.0
|
Implementation of the draft permessage-deflate WebSocket extension. More...
Namespaces | |
namespace | error |
namespace | mode |
Classes | |
class | disabled |
Stub class for use when disabling permessage_deflate extension. More... | |
class | enabled |
init
lib::error_code init(bool is_server)
Performs initialization
is_implimented
bool is_implimented()
Returns whether or not the object impliments the extension or not
is_enabled
bool is_enabled()
Returns whether or not the extension was negotiated for the current connection
generate_offer
std::string generate_offer() const
Create an extension offer string based on local policy
validate_response
lib::error_code validate_response(http::attribute_list const & response)
Negotiate the parameters of extension use
negotiate
err_str_pair negotiate(http::attribute_list const & attributes)
Negotiate the parameters of extension use
compress
lib::error_code compress(std::string const & in, std::string & out)
Compress the bytes in in
and append them to out
decompress
lib::error_code decompress(uint8_t const * buf, size_t len, std::string & out)
Decompress len
bytes from buf
and append them to string out