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
Performing configuration checks | |
- 32-bit : no (cached) | |
- 64-bit : yes (cached) | |
- arm : no (cached) | |
- mips1 : no (cached) | |
- power : no (cached) | |
- sparc : no (cached) | |
- x86 : yes (cached) | |
- symlinks supported : yes (cached) |
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 <string> | |
#include <cstdint> | |
#include <iostream> | |
#include <boost/asio/io_context.hpp> | |
#include <boost/asio/use_future.hpp> | |
#include <boost/asio/steady_timer.hpp> | |
#include <boost/beast/core/string.hpp> | |
#include <boost/beast/core/ostream.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
$ b2 -j20 doc | |
..\..\libs\log\build\Jamfile.v2:45: Unescaped special character in argument <def ine>$(flag)=1 | |
C:/Users/vinnie/src/boost/libs/predef/check/../tools/check\predef.jam:46: Unesca ped special character in argument $(language)::$(expression) | |
Performing configuration checks | |
- default address-model : 32-bit (cached) | |
- default architecture : x86 (cached) | |
- symlinks supported : yes (cached) | |
- C++11 mutex : yes (cached) | |
...patience... |
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
// calculates the coalesce settings for a buffer sequence | |
template<class FwdIt> | |
struct coalesce_result | |
{ | |
FwdIt last; | |
std::size_t size = 0; | |
bool copy = false; | |
explicit | |
coalesce_result(FwdIt last_) |
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
/** Adaptor to present a DynamicStorage object as a DynamicBuffer | |
*/ | |
template<class DynamicStorage> | |
class dynamic_storage | |
{ | |
DynamicStorage& s_; | |
public: | |
using const_buffers_type = | |
typename DynamicStorage::const_buffers_type; |
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) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot 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) | |
// | |
// Official repository: https://github.com/boostorg/beast | |
// | |
#ifndef BOOST_BEAST_BUFFERS_ADAPTER_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
CMake Error at C:/Program Files/CMake/share/cmake-3.8/Modules/FindBoost.cmake:1813 (message): | |
Unable to find the requested Boost libraries. | |
Boost version: 1.67.0 | |
Boost include path: C:/Users/vinnie/lib/boost_1_67_0 | |
Could not find the following static Boost libraries: | |
boost_system |
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) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot 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) | |
# | |
# Official repository: https://github.com/boostorg/beast | |
# | |
cmake_minimum_required (VERSION 3.0.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
Interactive Websites Using Boost.Beast WebSockets and Networking TS | |
The WebSocket protocol’s ability to enable full-duplex (two-way) | |
messaging between the browser and web servers is the foundation | |
which powers the interactive web. Boost.Beast implements the | |
WebSocket protocol using Boost.Asio which is itself a model of | |
the Networking Technical Specification: a blueprint of what | |
networking will look like when it reaches the C++ standard | |
library. This presentation introduces the Beast WebSockets | |
library interfaces and how to use them in programs. The talk |
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 MutableBufferSequence> | |
std::size_t read(MutableBufferSequence const&) | |
{ | |
throw std::exception{}; | |
} | |
void | |
example() | |
{ | |
std::string s; |