2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
28#ifndef WEBSOCKETPP_RANDOM_RANDOM_DEVICE_HPP
29#define WEBSOCKETPP_RANDOM_RANDOM_DEVICE_HPP
31#include <websocketpp/common/random.hpp>
40
41
42
43
44
45
46
47
48
49
50
51
52template <
typename int_type,
typename concurrency>
55 typedef typename concurrency::scoped_lock_type scoped_lock_type;
56 typedef typename concurrency::mutex_type mutex_type;
64 scoped_lock_type guard(m_lock);
70 lib::random_device m_rng;
71 lib::uniform_int_distribution<int_type> m_dis;
Client endpoint role based on the given config.
Concurrency policy that uses std::mutex / boost::mutex.
Stub for user supplied base class.
Stub for user supplied base class.
Stub class for use when disabling permessage_deflate extension.
Stores, parses, and manipulates HTTP requests.
Stores, parses, and manipulates HTTP responses.
Basic logger that outputs to an ostream.
Thread safe non-deterministic random integer generator.
int_type operator()()
advances the engine's state and returns the generated value
int_generator()
constructor
Basic ASIO endpoint socket component.
Asio based endpoint transport component.
Concurrency handling support.
Implementation of RFC 7692, the permessage-deflate WebSocket extension.
RNG policy based on std::random_device or boost::random_device.
Random number generation policies.
Transport policy that uses asio.
Transport policy that uses STL iostream for I/O and does not support timers.
Transport policies provide network connectivity and timers.
Namespace for the WebSocket++ project.
Client config with asio transport and TLS disabled.
Extension specific settings:
static const uint8_t minimum_outgoing_window_bits
static const bool allow_disabling_context_takeover
static const long timeout_dns_resolve
Length of time to wait for dns resolution.
static const long timeout_socket_shutdown
Length of time to wait for socket shutdown.
static const long timeout_socket_pre_init
Default timer values (in ms)
static bool const enable_multithreading
static const long timeout_proxy
Length of time to wait before a proxy handshake is aborted.
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.
Client config with iostream transport.
static bool const enable_multithreading
static const bool enable_extensions
Global flag for enabling/disabling extensions.
static const websocketpp::log::level alog_level
Default static access logging channels.
websocketpp::log::basic< concurrency_type, websocketpp::log::elevel > elog_type
Logging policies.
static const size_t max_http_body_size
Default maximum http body size.
websocketpp::random::random_device::int_generator< uint32_t, concurrency_type > rng_type
RNG policies.
static const websocketpp::log::level elog_level
Default static error logging channels.
static const size_t max_message_size
Default maximum message size.
websocketpp::transport::iostream::endpoint< transport_config > transport_type
Transport Endpoint Component.
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 long timeout_open_handshake
Default timer values (in ms)
static const long timeout_pong
Length of time to wait for a pong after a ping.
static const int client_version
WebSocket Protocol version to use as a client.
static const bool silent_close
Suppresses the return of detailed connection close information.
Package of log levels for logging access events.
static level const devel
Development messages (warning: very chatty)
static level const all
Special aggregate value representing "all levels".
Package of log levels for logging errors.
static level const devel
Low level debugging information (warning: very chatty)
static level const all
Special aggregate value representing "all levels".