WebSocket++
0.8.3-dev
C++ websocket client/server library
|
28 #ifndef WEBSOCKETPP_EXTENSION_PERMESSAGE_DEFLATE_DISABLED_HPP
29 #define WEBSOCKETPP_EXTENSION_PERMESSAGE_DEFLATE_DISABLED_HPP
31 #include <websocketpp/common/cpp11.hpp>
32 #include <websocketpp/common/stdint.hpp>
33 #include <websocketpp/common/system_error.hpp>
35 #include <websocketpp/http/constants.hpp>
36 #include <websocketpp/extensions/extension.hpp>
52 template <
typename config>
54 typedef std::pair<lib::error_code,std::string> err_str_pair;
66 return make_pair(make_error_code(error::disabled),std::string());
77 return lib::error_code();
110 return make_error_code(error::disabled);
121 return make_error_code(error::disabled);
lib::error_code compress(std::string const &, std::string &)
Compress bytes.
lib::error_code decompress(uint8_t const *, size_t, std::string &)
Decompress bytes.
lib::error_code init(bool)
Initialize state.
static std::vector< int > const versions_supported(helper, helper+4)
Container that stores the list of protocol versions supported.
std::string generate_offer() const
Generate extension offer.
err_str_pair negotiate(http::attribute_list const &)
Negotiate extension.
bool is_implemented() const
Implementation of RFC 7692, the permessage-deflate WebSocket extension.
Stub class for use when disabling permessage_deflate extension.