2016-04-19 20:29:16 -04:00
|
|
|
//
|
2017-02-06 20:07:03 -05:00
|
|
|
// Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
|
2016-04-19 20:29:16 -04:00
|
|
|
//
|
|
|
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#ifndef BEAST_WEBSOCKET_ERROR_HPP
|
|
|
|
|
#define BEAST_WEBSOCKET_ERROR_HPP
|
|
|
|
|
|
2017-04-10 19:24:27 -07:00
|
|
|
#include <beast/config.hpp>
|
2016-05-07 14:57:15 -04:00
|
|
|
#include <beast/core/error.hpp>
|
2016-04-19 20:29:16 -04:00
|
|
|
|
|
|
|
|
namespace beast {
|
|
|
|
|
namespace websocket {
|
|
|
|
|
|
2016-10-15 21:39:24 -04:00
|
|
|
/// Error codes returned from @ref beast::websocket::stream operations.
|
2016-04-19 20:29:16 -04:00
|
|
|
enum class error
|
|
|
|
|
{
|
|
|
|
|
/// Both sides performed a WebSocket close
|
2016-10-04 18:00:11 -04:00
|
|
|
closed = 1,
|
2016-04-19 20:29:16 -04:00
|
|
|
|
|
|
|
|
/// WebSocket connection failed, protocol violation
|
|
|
|
|
failed,
|
|
|
|
|
|
2017-05-01 20:49:51 -07:00
|
|
|
/// Upgrade handshake failed
|
|
|
|
|
handshake_failed
|
2016-04-19 20:29:16 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // websocket
|
|
|
|
|
} // beast
|
|
|
|
|
|
|
|
|
|
#include <beast/websocket/impl/error.ipp>
|
|
|
|
|
|
|
|
|
|
#endif
|