NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
websocketpp::config::debug_core Struct Reference

Client/Server debug config with iostream transport. More...

#include <debug.hpp>

Inheritance diagram for websocketpp::config::debug_core:
Collaboration diagram for websocketpp::config::debug_core:

Classes

struct  permessage_deflate_config
 Extension specific settings: More...
 
struct  transport_config
 

Public Types

typedef debug_core type
 
typedef websocketpp::concurrency::basic concurrency_type
 
typedef http::parser::request request_type
 
typedef http::parser::response response_type
 
typedef message_buffer::message< message_buffer::alloc::con_msg_managermessage_type
 
typedef message_buffer::alloc::con_msg_manager< message_typecon_msg_manager_type
 
typedef message_buffer::alloc::endpoint_msg_manager< con_msg_manager_typeendpoint_msg_manager_type
 
typedef websocketpp::log::basic< concurrency_type, websocketpp::log::elevelelog_type
 Logging policies. More...
 
typedef websocketpp::log::basic< concurrency_type, websocketpp::log::alevelalog_type
 
typedef websocketpp::random::none::int_generator< uint32_t > rng_type
 RNG policies. More...
 
typedef websocketpp::transport::iostream::endpoint< transport_configtransport_type
 Transport Endpoint Component. More...
 
typedef websocketpp::endpoint_base endpoint_base
 User overridable Endpoint base class. More...
 
typedef websocketpp::connection_base connection_base
 User overridable Connection base class. More...
 
typedef websocketpp::extensions::permessage_deflate::disabled< permessage_deflate_configpermessage_deflate_type
 

Static Public Attributes

static bool const enable_multithreading = true
 Controls compile time enabling/disabling of thread syncronization code Disabling can provide a minor performance improvement to single threaded applications. More...
 
static const long timeout_open_handshake = 5000
 Default timer values (in ms) More...
 
static const long timeout_close_handshake = 5000
 Length of time before a closing handshake is aborted. More...
 
static const long timeout_pong = 5000
 Length of time to wait for a pong after a ping. More...
 
static const int client_version = 13
 WebSocket Protocol version to use as a client. More...
 
static const websocketpp::log::level elog_level
 Default static error logging channels. More...
 
static const websocketpp::log::level alog_level
 Default static access logging channels. More...
 
static const size_t connection_read_buffer_size = 16384
 
static const bool drop_on_protocol_error = false
 Drop connections immediately on protocol error. More...
 
static const bool silent_close = false
 Suppresses the return of detailed connection close information. More...
 
static const size_t max_message_size = 32000000
 Default maximum message size. More...
 
static const size_t max_http_body_size = 32000000
 Default maximum http body size. More...
 
static const bool enable_extensions = true
 Global flag for enabling/disabling extensions. More...
 

Detailed Description

Client/Server debug config with iostream transport.

Definition at line 68 of file debug.hpp.

Member Typedef Documentation

◆ type

Definition at line 69 of file debug.hpp.

◆ concurrency_type

◆ request_type

◆ response_type

◆ message_type

◆ con_msg_manager_type

◆ endpoint_msg_manager_type

◆ elog_type

◆ alog_type

◆ rng_type

RNG policies.

Definition at line 93 of file debug.hpp.

◆ transport_type

◆ endpoint_base

User overridable Endpoint base class.

Definition at line 145 of file debug.hpp.

◆ connection_base

User overridable Connection base class.

Definition at line 147 of file debug.hpp.

◆ permessage_deflate_type

Member Data Documentation

◆ enable_multithreading

bool const websocketpp::config::debug_core::enable_multithreading = true
static

Controls compile time enabling/disabling of thread syncronization code Disabling can provide a minor performance improvement to single threaded applications.

Definition at line 98 of file debug.hpp.

◆ timeout_open_handshake

const long websocketpp::config::debug_core::timeout_open_handshake = 5000
static

Default timer values (in ms)

Length of time before an opening handshake is aborted

Definition at line 152 of file debug.hpp.

◆ timeout_close_handshake

const long websocketpp::config::debug_core::timeout_close_handshake = 5000
static

Length of time before a closing handshake is aborted.

Definition at line 154 of file debug.hpp.

◆ timeout_pong

const long websocketpp::config::debug_core::timeout_pong = 5000
static

Length of time to wait for a pong after a ping.

Definition at line 156 of file debug.hpp.

◆ client_version

const int websocketpp::config::debug_core::client_version = 13
static

WebSocket Protocol version to use as a client.

What version of the WebSocket Protocol to use for outgoing client connections. Setting this to a value other than 13 (RFC6455) is not recommended.

Definition at line 164 of file debug.hpp.

◆ elog_level

const websocketpp::log::level websocketpp::config::debug_core::elog_level
static
Initial value:

Default static error logging channels.

Which error logging channels to enable at compile time. Channels not enabled here will be unable to be selected by programs using the library. This option gives an optimizing compiler the ability to remove entirely code to test whether or not to print out log messages on a certain channel

Default is all except for development/debug level errors

Definition at line 176 of file debug.hpp.

◆ alog_level

const websocketpp::log::level websocketpp::config::debug_core::alog_level
static
Initial value:

Default static access logging channels.

Which access logging channels to enable at compile time. Channels not enabled here will be unable to be selected by programs using the library. This option gives an optimizing compiler the ability to remove entirely code to test whether or not to print out log messages on a certain channel

Default is all except for development/debug level access messages

Definition at line 189 of file debug.hpp.

◆ connection_read_buffer_size

const size_t websocketpp::config::debug_core::connection_read_buffer_size = 16384
static

Definition at line 193 of file debug.hpp.

◆ drop_on_protocol_error

const bool websocketpp::config::debug_core::drop_on_protocol_error = false
static

Drop connections immediately on protocol error.

Drop connections on protocol error rather than sending a close frame. Off by default. This may result in legit messages near the error being dropped as well. It may free up resources otherwise spent dealing with misbehaving clients.

Definition at line 202 of file debug.hpp.

◆ silent_close

const bool websocketpp::config::debug_core::silent_close = false
static

Suppresses the return of detailed connection close information.

Silence close suppresses the return of detailed connection close information during the closing handshake. This information is useful for debugging and presenting useful errors to end users but may be undesirable for security reasons in some production environments. Close reasons could be used by an attacker to confirm that the endpoint is out of resources or be used to identify the WebSocket implementation in use.

Note: this will suppress all close codes, including those explicitly sent by local applications.

Definition at line 217 of file debug.hpp.

◆ max_message_size

const size_t websocketpp::config::debug_core::max_message_size = 32000000
static

Default maximum message size.

Default value for the processor's maximum message size. Maximum message size determines the point at which the library will fail a connection with the message_too_big protocol error.

The default is 32MB

Since
0.3.0

Definition at line 229 of file debug.hpp.

◆ max_http_body_size

const size_t websocketpp::config::debug_core::max_http_body_size = 32000000
static

Default maximum http body size.

Default value for the http parser's maximum body size. Maximum body size determines the point at which the library will abort reading an HTTP connection with the 413/request entity too large error.

The default is 32MB

Since
0.5.0

Definition at line 241 of file debug.hpp.

◆ enable_extensions

const bool websocketpp::config::debug_core::enable_extensions = true
static

Global flag for enabling/disabling extensions.

Definition at line 244 of file debug.hpp.


The documentation for this struct was generated from the following file: