2017-07-20 08:01:46 -07:00
|
|
|
//
|
2017-07-24 09:42:36 -07:00
|
|
|
// Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
|
2017-07-20 08:01:46 -07: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)
|
|
|
|
//
|
2017-07-20 13:40:34 -07:00
|
|
|
// Official repository: https://github.com/boostorg/beast
|
|
|
|
//
|
2017-07-20 08:01:46 -07:00
|
|
|
|
2017-07-20 13:40:34 -07:00
|
|
|
#ifndef BOOST_BEAST_WEBSOCKET_ERROR_HPP
|
|
|
|
#define BOOST_BEAST_WEBSOCKET_ERROR_HPP
|
2017-07-20 08:01:46 -07:00
|
|
|
|
2017-07-20 13:40:34 -07:00
|
|
|
#include <boost/beast/config.hpp>
|
|
|
|
#include <boost/beast/core/error.hpp>
|
2017-07-20 08:01:46 -07:00
|
|
|
|
2017-07-20 13:40:34 -07:00
|
|
|
namespace boost {
|
2017-07-20 08:01:46 -07:00
|
|
|
namespace beast {
|
|
|
|
namespace websocket {
|
|
|
|
|
2016-10-15 21:39:24 -04:00
|
|
|
/// Error codes returned from @ref beast::websocket::stream operations.
|
2017-07-20 08:01:46 -07:00
|
|
|
enum class error
|
|
|
|
{
|
|
|
|
/// Both sides performed a WebSocket close
|
2016-10-04 18:00:11 -04:00
|
|
|
closed = 1,
|
2017-07-20 08:01:46 -07:00
|
|
|
|
|
|
|
/// WebSocket connection failed, protocol violation
|
|
|
|
failed,
|
|
|
|
|
2017-05-01 20:49:51 -07:00
|
|
|
/// Upgrade handshake failed
|
2017-07-15 17:05:24 -07:00
|
|
|
handshake_failed,
|
|
|
|
|
|
|
|
/// buffer overflow
|
|
|
|
buffer_overflow
|
2017-07-20 08:01:46 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
} // websocket
|
|
|
|
} // beast
|
2017-07-20 13:40:34 -07:00
|
|
|
} // boost
|
2017-07-20 08:01:46 -07:00
|
|
|
|
2017-07-20 13:40:34 -07:00
|
|
|
#include <boost/beast/websocket/impl/error.ipp>
|
2017-07-20 08:01:46 -07:00
|
|
|
|
|
|
|
#endif
|