|
WebSocket++ 0.8.4
C++ websocket client/server library
|
Stub class for use when disabling permessage_deflate extension. More...
#include <disabled.hpp>
Public Member Functions | |
| err_str_pair | negotiate (http::attribute_list const &) |
| Negotiate extension. | |
| lib::error_code | init (bool) |
| Initialize state. | |
| bool | is_implemented () const |
| bool | is_enabled () const |
| std::string | generate_offer () const |
| Generate extension offer. | |
| void | set_max_message_size (size_t) |
| Set maximum decompressed message size (no-op). | |
| lib::error_code | compress (std::string const &, std::string &) |
| Compress bytes. | |
| lib::error_code | decompress (uint8_t const *, size_t, std::string &) |
| Decompress bytes. | |
Static Public Member Functions | |
| static bool | is_message_too_big (lib::error_code const &) |
Stub class for use when disabling permessage_deflate extension.
This class is a stub that implements the permessage_deflate interface with minimal dependencies. It is used to disable permessage_deflate functionality at compile time without loading any unnecessary code.
Definition at line 53 of file disabled.hpp.
|
inline |
Compress bytes.
| [in] | in | String to compress |
| [out] | out | String to append compressed bytes to |
Definition at line 124 of file disabled.hpp.
|
inline |
Decompress bytes.
| buf | Byte buffer to decompress |
| len | Length of buf |
| out | String to append decompressed bytes to |
Definition at line 137 of file disabled.hpp.
|
inline |
Generate extension offer.
Creates an offer string to include in the Sec-WebSocket-Extensions header of outgoing client requests.
Definition at line 104 of file disabled.hpp.
|
inline |
Initialize state.
For the disabled extension state initialization is a no-op.
| is_server | True to initialize as a server, false for a client. |
Definition at line 81 of file disabled.hpp.
|
inline |
Returns true if permessage_deflate functionality is active for this connection
Definition at line 93 of file disabled.hpp.
|
inline |
Returns true if the extension is capable of providing permessage_deflate functionality
Definition at line 87 of file disabled.hpp.
|
inlinestatic |
Definition at line 143 of file disabled.hpp.
|
inline |
Negotiate extension.
The disabled extension always fails the negotiation with a disabled error.
| offer | Attribute from client's offer |
Definition at line 65 of file disabled.hpp.
|
inline |
Set maximum decompressed message size (no-op).
Provided for API parity with the enabled extension. The disabled extension never decompresses, so there is no limit to enforce and the value is silently ignored.
Definition at line 116 of file disabled.hpp.