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/system_error.hpp> 34 #include <websocketpp/http/constants.hpp> 35 #include <websocketpp/extensions/extension.hpp> 51 template <
typename config>
53 typedef std::pair<lib::error_code,std::string> err_str_pair;
65 return make_pair(make_error_code(error::disabled),std::string());
76 return lib::error_code();
109 return make_error_code(error::disabled);
120 return make_error_code(error::disabled);
lib::error_code init(bool)
Initialize state.
Stub class for use when disabling permessage_deflate extension.
err_str_pair negotiate(http::attribute_list const &)
Negotiate extension.
lib::error_code compress(std::string const &, std::string &)
Compress bytes.
lib::error_code decompress(uint8_t const *, size_t, std::string &)
Decompress bytes.
bool is_implemented() const
void handle_accept(connection_ptr con, lib::error_code const &ec)
Handler callback for start_accept.
std::string generate_offer() const
Generate extension offer.
static uint8_t const max_client_max_window_bits
Maximum value for client_max_window_bits as defined by draft 17.