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>
63 namespace websocketpp {
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;
115 typedef websocketpp::log::stub elog_type;
116 typedef websocketpp::log::stub alog_type;
119 typedef websocketpp::random::none::int_generator<uint32_t> rng_type;
124 static bool const enable_multithreading =
true;
126 struct transport_config {
127 typedef type::concurrency_type concurrency_type;
128 typedef type::elog_type elog_type;
129 typedef type::alog_type alog_type;
130 typedef type::request_type request_type;
131 typedef type::response_type response_type;
136 static bool const enable_multithreading =
true;
144 static const long timeout_socket_pre_init = 5000;
147 static const long timeout_proxy = 5000;
154 static const long timeout_socket_post_init = 5000;
157 static const long timeout_dns_resolve = 5000;
160 static const long timeout_connect = 5000;
163 static const long timeout_socket_shutdown = 5000;
167 typedef websocketpp::transport::stub::endpoint<transport_config>
171 typedef websocketpp::endpoint_base endpoint_base;
173 typedef websocketpp::connection_base connection_base;
178 static const long timeout_open_handshake = 5000;
180 static const long timeout_close_handshake = 5000;
182 static const long timeout_pong = 5000;
190 static const int client_version = 13;
202 static const websocketpp::log::level elog_level =
203 websocketpp::log::elevel::none;
215 static const websocketpp::log::level alog_level =
216 websocketpp::log::alevel::none;
219 static const size_t connection_read_buffer_size = 16384;
228 static const bool drop_on_protocol_error =
false;
243 static const bool silent_close =
false;
255 static const size_t max_message_size = 32000000;
267 static const size_t max_http_body_size = 32000000;
270 static const bool enable_extensions =
true;
275 struct permessage_deflate_config {
276 typedef core::request_type request_type;
280 static const bool allow_disabling_context_takeover =
true;
287 static const uint8_t minimum_outgoing_window_bits = 8;
290 typedef websocketpp::extensions::permessage_deflate::disabled
291 <permessage_deflate_config> permessage_deflate_type;