123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- #ifndef BOOST_BEAST_WEBSOCKET_ERROR_HPP
- #define BOOST_BEAST_WEBSOCKET_ERROR_HPP
- #include <boost/beast/core/detail/config.hpp>
- #include <boost/beast/core/error.hpp>
- namespace boost {
- namespace beast {
- namespace websocket {
- enum class error
- {
-
- closed = 1,
- #if ! BOOST_BEAST_DOXYGEN
- unused1 = 2,
- unused2 = 3,
- #endif
-
- buffer_overflow,
-
- partial_deflate_block,
-
- message_too_big,
-
-
-
-
-
-
- bad_http_version,
-
- bad_method,
-
- no_host,
-
- no_connection,
-
- no_connection_upgrade,
-
- no_upgrade,
-
- no_upgrade_websocket,
-
- no_sec_key,
-
- bad_sec_key,
-
- no_sec_version,
-
- bad_sec_version,
-
- no_sec_accept,
-
- bad_sec_accept,
-
- upgrade_declined,
-
-
-
-
-
-
- bad_opcode,
-
- bad_data_frame,
-
- bad_continuation,
-
- bad_reserved_bits,
-
- bad_control_fragment,
-
- bad_control_size,
-
- bad_unmasked_frame,
-
- bad_masked_frame,
-
- bad_size,
-
- bad_frame_payload,
-
- bad_close_code,
-
- bad_close_size,
-
- bad_close_payload
- };
- enum class condition
- {
-
- handshake_failed = 1,
-
- protocol_violation
- };
- }
- }
- }
- #include <boost/beast/websocket/impl/error.hpp>
- #ifdef BOOST_BEAST_HEADER_ONLY
- #include <boost/beast/websocket/impl/error.ipp>
- #endif
- #endif
|