Files
boost_beast/include/beast/websocket/error.hpp
T

36 lines
769 B
C++
Raw Normal View History

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
#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,
/// Upgrade handshake failed
handshake_failed
2016-04-19 20:29:16 -04:00
};
} // websocket
} // beast
#include <beast/websocket/impl/error.ipp>
#endif