This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <boost/json.hpp> | |
#include <iostream> | |
#include <sstream> | |
namespace json = boost::json; | |
struct unwrap | |
{ | |
unwrap(std::exception &e) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Copyright (c) 2021 Richard Hodges (hodges.r@gmail.com) | |
// | |
// 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) | |
// | |
#include <asio.hpp> | |
#include <iostream> | |
#include <asio/experimental/append.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct invariants; | |
struct invariants_builder | |
{ | |
void set(std::string const& index, std::any item); | |
invariants commit(); | |
}; | |
/// A map of type -> any. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// @brief The result of attemping an atomic produce, consume or produce and | |
/// consume. | |
struct io_transfer_result | |
{ | |
/// 1 if the transfer completed | |
unsigned char success : 1 = 0; | |
/// 1 if the consumer is in the completed state | |
unsigned char consumed : 1 = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <boost/asio.hpp> | |
#include <boost/beast/core/flat_buffer.hpp> | |
#include <boost/beast/http.hpp> | |
#include <boost/beast/websocket.hpp> | |
#include <iostream> | |
#include <map> | |
#include <string> | |
using namespace boost::beast; | |
namespace asio = boost::asio; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(NOT REQUIRE_BOOST_CMAKE) | |
set(REQUIRE_BOOST_CMAKE 1) | |
else() | |
return() | |
endif() | |
# | |
# file level configuation | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// An inline coroutine completion handler which completes waiting coroutines | |
/// inline (without post or dispatch). | |
struct condvar_impl | |
{ | |
struct waiter_concept | |
{ | |
virtual bool | |
pred() const = 0; | |
virtual void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template<class F> | |
concept mutable_value_visitor = | |
requires(F f, value& v) | |
{ | |
{ f(v) }; | |
}; | |
template < mutable_value_visitor Visitor > | |
void | |
enumerate(value &v, Visitor f) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/include/boost/beast/_experimental/test/impl/stream.hpp b/include/boost/beast/_experimental/test/impl/stream.hpp | |
index f7eac6afd..9f8dc63cd 100644 | |
--- a/include/boost/beast/_experimental/test/impl/stream.hpp | |
+++ b/include/boost/beast/_experimental/test/impl/stream.hpp | |
@@ -27,7 +27,8 @@ namespace test { | |
//------------------------------------------------------------------------------ | |
-struct stream::service_impl | |
+template<class Executor> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std::string | |
deduce_port(std::string const &scheme, std::string port) | |
{ | |
using boost::algorithm::iequals; | |
if (port.empty()) | |
{ | |
if (iequals(scheme, "ws") or iequals(scheme, "http")) | |
port = "http"; | |
else if (iequals(scheme, "wss") or iequals(scheme, "https")) |
NewerOlder