WebSocket++
0.8.3-dev
C++ websocket client/server library
|
28 #ifndef WEBSOCKETPP_CONFIG_MINIMAL_HPP
29 #define WEBSOCKETPP_CONFIG_MINIMAL_HPP
32 #include <websocketpp/common/platforms.hpp>
33 #include <websocketpp/common/cpp11.hpp>
34 #include <websocketpp/common/stdint.hpp>
37 #include <websocketpp/concurrency/none.hpp>
40 #include <websocketpp/transport/stub/endpoint.hpp>
43 #include <websocketpp/http/request.hpp>
44 #include <websocketpp/http/response.hpp>
47 #include <websocketpp/message_buffer/message.hpp>
48 #include <websocketpp/message_buffer/alloc.hpp>
51 #include <websocketpp/logger/stub.hpp>
54 #include <websocketpp/random/none.hpp>
57 #include <websocketpp/endpoint_base.hpp>
58 #include <websocketpp/connection_base.hpp>
61 #include <websocketpp/extensions/permessage_deflate/disabled.hpp>
96 struct minimal_server {
97 typedef minimal_server type;
100 typedef websocketpp::concurrency::none concurrency_type;
103 typedef http::parser::request request_type;
104 typedef http::parser::response response_type;
107 typedef message_buffer::message<message_buffer::alloc::con_msg_manager>
109 typedef message_buffer::alloc::con_msg_manager<message_type>
110 con_msg_manager_type;
111 typedef message_buffer::alloc::endpoint_msg_manager<con_msg_manager_type>
112 endpoint_msg_manager_type;
116 typedef websocketpp::log::stub alog_type;
127 typedef type::concurrency_type concurrency_type;
129 typedef type::alog_type alog_type;
130 typedef type::request_type request_type;
131 typedef type::response_type response_type;
167 typedef websocketpp::transport::stub::endpoint<transport_config>
203 websocketpp::log::elevel::none;
216 websocketpp::log::alevel::none;
219 static const size_t connection_read_buffer_size = 16384;
276 typedef core::request_type request_type;
290 typedef websocketpp::extensions::permessage_deflate::disabled
291 <permessage_deflate_config> permessage_deflate_type;
Extension specific settings:
static const websocketpp::log::level alog_level
Default static access logging channels.
static bool const enable_multithreading
websocketpp::random::none::int_generator< uint32_t > rng_type
RNG policies.
static const bool allow_disabling_context_takeover
static const websocketpp::log::level elog_level
Default static error logging channels.
static const long timeout_dns_resolve
Length of time to wait for dns resolution.
static const bool silent_close
Suppresses the return of detailed connection close information.
static const size_t max_message_size
Default maximum message size.
static const long timeout_proxy
Length of time to wait before a proxy handshake is aborted.
static std::vector< int > const versions_supported(helper, helper+4)
Container that stores the list of protocol versions supported.
static const long timeout_open_handshake
Default timer values (in ms)
static bool const enable_multithreading
websocketpp::endpoint_base endpoint_base
User overridable Endpoint base class.
static const long timeout_socket_shutdown
Length of time to wait for socket shutdown.
websocketpp::connection_base connection_base
User overridable Connection base class.
static const bool enable_extensions
Global flag for enabling/disabling extensions.
static const long timeout_socket_pre_init
Default timer values (in ms)
static const long timeout_pong
Length of time to wait for a pong after a ping.
static const long timeout_connect
Length of time to wait for TCP connect.
static const long timeout_socket_post_init
Length of time to wait for socket post-initialization.
static const size_t max_http_body_size
Default maximum http body size.
static const uint8_t minimum_outgoing_window_bits
websocketpp::log::stub elog_type
Logging policies.
static const bool drop_on_protocol_error
Drop connections immediately on protocol error.
static const long timeout_close_handshake
Length of time before a closing handshake is aborted.
static const int client_version
WebSocket Protocol version to use as a client.