mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
adds documentation
This commit is contained in:
8
Doxyfile
8
Doxyfile
@@ -668,7 +668,7 @@ WARN_LOGFILE =
|
||||
# directories like "/usr/src/myproject". Separate the files or directories
|
||||
# with spaces.
|
||||
|
||||
INPUT =
|
||||
INPUT = websocketpp
|
||||
|
||||
# This tag can be used to specify the character encoding of the source files
|
||||
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
|
||||
@@ -948,13 +948,13 @@ HTML_EXTRA_FILES =
|
||||
# 180 is cyan, 240 is blue, 300 purple, and 360 is red again.
|
||||
# The allowed range is 0 to 359.
|
||||
|
||||
HTML_COLORSTYLE_HUE = 220
|
||||
HTML_COLORSTYLE_HUE = 236
|
||||
|
||||
# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of
|
||||
# the colors in the HTML output. For a value of 0 the output will use
|
||||
# grayscales only. A value of 255 will produce the most vivid colors.
|
||||
|
||||
HTML_COLORSTYLE_SAT = 100
|
||||
HTML_COLORSTYLE_SAT = 0
|
||||
|
||||
# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to
|
||||
# the luminance component of the colors in the HTML output. Values below
|
||||
@@ -963,7 +963,7 @@ HTML_COLORSTYLE_SAT = 100
|
||||
# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2,
|
||||
# and 100 does not change the gamma.
|
||||
|
||||
HTML_COLORSTYLE_GAMMA = 80
|
||||
HTML_COLORSTYLE_GAMMA = 148
|
||||
|
||||
# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
|
||||
# page will contain the date and time when the page was generated. Setting
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
namespace websocketpp {
|
||||
namespace concurrency {
|
||||
|
||||
/// Concurrency policy that uses std::mutex / boost::mutex
|
||||
class basic {
|
||||
public:
|
||||
typedef lib::mutex mutex_type;
|
||||
|
||||
@@ -58,6 +58,7 @@ public:
|
||||
|
||||
} // namespace none_impl
|
||||
|
||||
/// Stub Concurrency policy to remove locking in single threaded projects
|
||||
class none {
|
||||
public:
|
||||
typedef none_impl::fake_mutex mutex_type;
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
namespace websocketpp {
|
||||
namespace config {
|
||||
|
||||
/// Server config with asio transport and TLS enabled
|
||||
struct asio_tls : public core {
|
||||
typedef asio_tls type;
|
||||
typedef core base;
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
namespace websocketpp {
|
||||
namespace config {
|
||||
|
||||
/// Client config with asio transport and TLS enabled
|
||||
struct asio_tls_client : public core_client {
|
||||
typedef asio_tls_client type;
|
||||
typedef core_client base;
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
namespace websocketpp {
|
||||
namespace config {
|
||||
|
||||
/// Server config with asio transport and TLS disabled
|
||||
struct asio : public core {
|
||||
typedef asio type;
|
||||
typedef core base;
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
namespace websocketpp {
|
||||
namespace config {
|
||||
|
||||
/// Client config with asio transport and TLS disabled
|
||||
struct asio_client : public core_client {
|
||||
typedef asio_client type;
|
||||
typedef core_client base;
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
namespace websocketpp {
|
||||
namespace config {
|
||||
|
||||
/// Server config with iostream transport
|
||||
struct core {
|
||||
typedef core type;
|
||||
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
namespace websocketpp {
|
||||
namespace config {
|
||||
|
||||
/// Client config with iostream transport
|
||||
struct core_client {
|
||||
typedef core_client type;
|
||||
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
namespace websocketpp {
|
||||
namespace config {
|
||||
|
||||
/// Client/Server debug config with iostream transport
|
||||
struct debug_core {
|
||||
typedef debug_core type;
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
namespace websocketpp {
|
||||
namespace config {
|
||||
|
||||
/// Client/Server debug config with asio transport and TLS enabled
|
||||
struct debug_asio_tls : public debug_core {
|
||||
typedef debug_asio_tls type;
|
||||
typedef debug_core base;
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
namespace websocketpp {
|
||||
namespace config {
|
||||
|
||||
/// Client/Server debug config with asio transport and TLS disabled
|
||||
struct debug_asio : public debug_core {
|
||||
typedef debug_asio type;
|
||||
typedef debug_core base;
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace internal_state {
|
||||
} // namespace internal_state
|
||||
} // namespace session
|
||||
|
||||
// impliments the websocket state machine
|
||||
/// Represents an individual WebSocket connection
|
||||
template <typename config>
|
||||
class connection
|
||||
: public config::transport_type::transport_con_type
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace websocketpp {
|
||||
|
||||
static const char user_agent[] = "WebSocket++/0.3.0dev";
|
||||
|
||||
// creates and manages connections
|
||||
/// Creates and manages connections associated with a WebSocket endpoint
|
||||
template <typename connection, typename config>
|
||||
class endpoint : public config::transport_type, public config::endpoint_base {
|
||||
public:
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
namespace websocketpp {
|
||||
namespace log {
|
||||
|
||||
/// Basic logger that outputs to an ostream
|
||||
template <typename concurrency, typename names>
|
||||
class basic {
|
||||
public:
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
namespace websocketpp {
|
||||
namespace log {
|
||||
|
||||
/// Stub logger that ignores all input!
|
||||
/// Stub logger that ignores all input
|
||||
class stub {
|
||||
public:
|
||||
stub(std::ostream* out = &std::cout) {}
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
|
||||
/// Provides MD5 hashing functionality
|
||||
namespace md5 {
|
||||
|
||||
typedef unsigned char md5_byte_t; /* 8-bit byte */
|
||||
|
||||
@@ -54,6 +54,7 @@
|
||||
namespace websocketpp {
|
||||
namespace processor {
|
||||
|
||||
/// Processor for Hybi version 13 (RFC6455)
|
||||
template <typename config>
|
||||
class hybi13 : public processor<config> {
|
||||
public:
|
||||
|
||||
@@ -153,6 +153,7 @@ uri_ptr get_uri_from_host(request_type & request, std::string scheme) {
|
||||
// }
|
||||
// }
|
||||
|
||||
/// WebSocket protocol processor base class
|
||||
template <typename config>
|
||||
class processor {
|
||||
public:
|
||||
@@ -193,9 +194,9 @@ public:
|
||||
|
||||
/// validate a WebSocket handshake request for this version
|
||||
/**
|
||||
* @param r The WebSocket handshake request to validate.
|
||||
* is_websocket_handshake(r) must be true and get_websocket_version(r)
|
||||
* must equal this->get_version().
|
||||
* @param request The WebSocket handshake request to validate.
|
||||
* is_websocket_handshake(request) must be true and
|
||||
* get_websocket_version(request) must equal this->get_version().
|
||||
*
|
||||
* @return A status code, 0 on success, non-zero for specific sorts of
|
||||
* failure
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
|
||||
namespace websocketpp {
|
||||
namespace random {
|
||||
/// Stub RNG policy that always returns 0
|
||||
namespace none {
|
||||
|
||||
/// Thread safe stub "random" integer generator.
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
|
||||
namespace websocketpp {
|
||||
namespace random {
|
||||
/// RNG policy based on std::random_device or boost::random_device
|
||||
namespace random_device {
|
||||
|
||||
/// Thread safe non-deterministic random integer generator.
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
|
||||
namespace websocketpp {
|
||||
|
||||
/// Provides SHA1 hashing functionality
|
||||
class SHA1
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
|
||||
namespace websocketpp {
|
||||
namespace transport {
|
||||
/// Transport policy that uses boost::asio
|
||||
namespace asio {
|
||||
|
||||
typedef lib::function<void(const boost::system::error_code &)>
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include <iostream>
|
||||
|
||||
namespace websocketpp {
|
||||
/// Transport policies provide network connectivity and timers
|
||||
namespace transport {
|
||||
|
||||
// Endpoint callbacks
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
namespace websocketpp {
|
||||
namespace transport {
|
||||
/// Transport policy that uses STL iostream for I/O and does not support timers
|
||||
namespace iostream {
|
||||
|
||||
namespace error {
|
||||
|
||||
@@ -40,7 +40,8 @@ decode(uint32_t* state, uint32_t* codep, uint8_t byte) {
|
||||
*state = utf8d[256 + *state*16 + type];
|
||||
return *state;
|
||||
}
|
||||
|
||||
|
||||
/// Provides streaming UTF8 validation functionality
|
||||
class validator {
|
||||
public:
|
||||
validator() : m_state(UTF8_ACCEPT),m_codepoint(0) {}
|
||||
|
||||
Reference in New Issue
Block a user