forked from boostorg/beast
Number error codes from 1 (fix #54)
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
|
Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
|
||||||
|
|
||||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||||
file LICENSE_1_0.txt or copy at http://www.beast.org/LICENSE_1_0.txt)
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<xsl:output method="text"/>
|
<xsl:output method="text"/>
|
||||||
|
@@ -15,7 +15,9 @@ namespace test {
|
|||||||
|
|
||||||
enum error
|
enum error
|
||||||
{
|
{
|
||||||
fail_error = 1
|
success = 0,
|
||||||
|
|
||||||
|
fail_error
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
@@ -15,6 +15,8 @@ namespace http {
|
|||||||
|
|
||||||
enum class parse_error
|
enum class parse_error
|
||||||
{
|
{
|
||||||
|
success = 0,
|
||||||
|
|
||||||
connection_closed,
|
connection_closed,
|
||||||
|
|
||||||
bad_method,
|
bad_method,
|
||||||
|
@@ -16,8 +16,10 @@ namespace websocket {
|
|||||||
/// Error codes returned from @ref stream operations.
|
/// Error codes returned from @ref stream operations.
|
||||||
enum class error
|
enum class error
|
||||||
{
|
{
|
||||||
|
success = 0,
|
||||||
|
|
||||||
/// Both sides performed a WebSocket close
|
/// Both sides performed a WebSocket close
|
||||||
closed = 1,
|
closed,
|
||||||
|
|
||||||
/// WebSocket connection failed, protocol violation
|
/// WebSocket connection failed, protocol violation
|
||||||
failed,
|
failed,
|
||||||
|
Reference in New Issue
Block a user