updates config to add RNG policy

This commit is contained in:
Peter Thorson
2013-03-02 20:47:23 -06:00
parent fbe991d9c2
commit 8b7fe18a85
3 changed files with 14 additions and 0 deletions

View File

@@ -51,6 +51,8 @@ struct asio_tls : public core {
typedef core::alog_type alog_type;
typedef core::alog_type elog_type;
typedef core::rng_type rng_type;
struct transport_config {
typedef asio_tls::concurrency_type concurrency_type;

View File

@@ -47,6 +47,8 @@ struct asio : public core {
typedef core::alog_type alog_type;
typedef core::alog_type elog_type;
typedef core::rng_type rng_type;
struct transport_config {
typedef asio::concurrency_type concurrency_type;
typedef asio::alog_type alog_type;

View File

@@ -28,6 +28,9 @@
#ifndef WEBSOCKETPP_CONFIG_CORE_HPP
#define WEBSOCKETPP_CONFIG_CORE_HPP
// Integers
#include <websocketpp/common/stdint.hpp>
// Concurrency
#include <websocketpp/concurrency/basic.hpp>
@@ -45,6 +48,9 @@
// Loggers
#include <websocketpp/logger/basic.hpp>
// RNG
#include <websocketpp/random/random_device.hpp>
// Extensions
#include <websocketpp/extensions/permessage_compress/disabled.hpp>
@@ -73,6 +79,10 @@ struct core {
typedef websocketpp::log::basic<concurrency_type,
websocketpp::log::alevel> alog_type;
/// RNG policies
typedef websocketpp::random::random_device<uint32_t,concurrency_type>
rng_type;
struct transport_config {
typedef core::concurrency_type concurrency_type;
typedef core::elog_type elog_type;