Updates configs for new socket API

This commit is contained in:
Peter Thorson
2013-01-07 12:18:37 -06:00
parent f5d4cbe143
commit f9c62ee778
3 changed files with 12 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, Peter Thorson. All rights reserved.
* Copyright (c) 2013, Peter Thorson. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -38,9 +38,10 @@ namespace config {
struct asio : public core {
typedef core::concurrency_type concurrency_type;
typedef websocketpp::transport::security::none security_type;
typedef websocketpp::transport::asio::basic_socket::endpoint socket_type;
typedef websocketpp::transport::asio::endpoint<concurrency_type,security_type> transport_type;
typedef websocketpp::transport::asio::endpoint<concurrency_type,socket_type>
transport_type;
typedef core::request_type request_type;
typedef core::response_type response_type;
@@ -53,9 +54,10 @@ struct asio : public core {
struct asio_tls : public core {
typedef core::concurrency_type concurrency_type;
typedef websocketpp::transport::security::tls security_type;
typedef websocketpp::transport::asio::tls_socket::endpoint socket_type;
typedef websocketpp::transport::asio::endpoint<concurrency_type,security_type> transport_type;
typedef websocketpp::transport::asio::endpoint<concurrency_type,socket_type>
transport_type;
typedef core::request_type request_type;
typedef core::response_type response_type;

View File

@@ -37,9 +37,10 @@ namespace config {
struct asio : public core {
typedef core::concurrency_type concurrency_type;
typedef websocketpp::transport::security::none security_type;
typedef websocketpp::transport::asio::basic_socket::endpoint socket_type;
typedef websocketpp::transport::asio::endpoint<concurrency_type,security_type> transport_type;
typedef websocketpp::transport::asio::endpoint<concurrency_type,socket_type>
transport_type;
typedef core::request_type request_type;
typedef core::response_type response_type;

View File

@@ -53,7 +53,8 @@ struct core {
typedef websocketpp::concurrency::none concurrency_type;
// Transport Policy
typedef websocketpp::transport::iostream::endpoint<concurrency_type> transport_type;
typedef websocketpp::transport::iostream::endpoint<concurrency_type>
transport_type;
// HTTP Parser Policies
typedef http::parser::request request_type;