Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:29:32

0001 //
0002 // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 // Official repository: https://github.com/boostorg/beast
0008 //
0009 
0010 #ifndef BOOST_BEAST_WEBSOCKET_DETAIL_HYBI13_HPP
0011 #define BOOST_BEAST_WEBSOCKET_DETAIL_HYBI13_HPP
0012 
0013 #include <boost/beast/core/static_string.hpp>
0014 #include <boost/beast/core/string.hpp>
0015 #include <boost/beast/core/detail/base64.hpp>
0016 #include <cstdint>
0017 
0018 namespace boost {
0019 namespace beast {
0020 namespace websocket {
0021 namespace detail {
0022 
0023 using sec_ws_key_type = static_string<
0024     beast::detail::base64::encoded_size(16)>;
0025 
0026 using sec_ws_accept_type = static_string<
0027     beast::detail::base64::encoded_size(20)>;
0028 
0029 BOOST_BEAST_DECL
0030 void
0031 make_sec_ws_key(sec_ws_key_type& key);
0032 
0033 BOOST_BEAST_DECL
0034 void
0035 make_sec_ws_accept(
0036     sec_ws_accept_type& accept,
0037     string_view key);
0038 
0039 } // detail
0040 } // websocket
0041 } // beast
0042 } // boost
0043 
0044 #if BOOST_BEAST_HEADER_ONLY
0045 #include <boost/beast/websocket/detail/hybi13.ipp>
0046 #endif
0047 
0048 #endif