NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
websocketpp::extensions::permessage_deflate Namespace Reference

Implementation of the draft permessage-deflate WebSocket extension. More...

Namespaces

 error
 Permessage deflate error values.
 
 mode
 

Classes

class  disabled
 Stub class for use when disabling permessage_deflate extension. More...
 
class  enabled
 

Variables

static uint8_t const default_server_max_window_bits = 15
 Default value for server_max_window_bits as defined by draft 17. More...
 
static uint8_t const min_server_max_window_bits = 8
 Minimum value for server_max_window_bits as defined by draft 17. More...
 
static uint8_t const max_server_max_window_bits = 15
 Maximum value for server_max_window_bits as defined by draft 17. More...
 
static uint8_t const default_client_max_window_bits = 15
 Default value for client_max_window_bits as defined by draft 17. More...
 
static uint8_t const min_client_max_window_bits = 8
 Minimum value for client_max_window_bits as defined by draft 17. More...
 
static uint8_t const max_client_max_window_bits = 15
 Maximum value for client_max_window_bits as defined by draft 17. More...
 

Detailed Description

Implementation of the draft permessage-deflate WebSocket extension.

permessage-deflate interface

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

Variable Documentation

uint8_t const websocketpp::extensions::permessage_deflate::default_server_max_window_bits = 15
static

Default value for server_max_window_bits as defined by draft 17.

Definition at line 178 of file enabled.hpp.

Referenced by websocketpp::extensions::permessage_deflate::enabled< config >::decompress().

uint8_t const websocketpp::extensions::permessage_deflate::min_server_max_window_bits = 8
static

Minimum value for server_max_window_bits as defined by draft 17.

Definition at line 180 of file enabled.hpp.

Referenced by websocketpp::extensions::permessage_deflate::enabled< config >::decompress().

uint8_t const websocketpp::extensions::permessage_deflate::max_server_max_window_bits = 15
static

Maximum value for server_max_window_bits as defined by draft 17.

Definition at line 182 of file enabled.hpp.

uint8_t const websocketpp::extensions::permessage_deflate::default_client_max_window_bits = 15
static

Default value for client_max_window_bits as defined by draft 17.

Definition at line 185 of file enabled.hpp.

Referenced by websocketpp::extensions::permessage_deflate::enabled< config >::decompress().

uint8_t const websocketpp::extensions::permessage_deflate::min_client_max_window_bits = 8
static

Minimum value for client_max_window_bits as defined by draft 17.

Definition at line 187 of file enabled.hpp.

Referenced by websocketpp::extensions::permessage_deflate::enabled< config >::decompress().

uint8_t const websocketpp::extensions::permessage_deflate::max_client_max_window_bits = 15
static

Maximum value for client_max_window_bits as defined by draft 17.

Definition at line 189 of file enabled.hpp.