awaitable examples.

Closes #2104.
This commit is contained in:
Klemens Morgenstern
2022-10-11 23:28:25 +08:00
committed by Klemens Morgenstern
parent 1fc340713c
commit 09bfca1fa1
26 changed files with 2293 additions and 0 deletions

View File

@ -9,3 +9,4 @@
add_subdirectory (server)
add_subdirectory (server-flex)
add_subdirectory (server-flex-awaitable)

View File

@ -11,3 +11,6 @@ build-project server ;
# SSL
build-project server-flex ;
# C++20
build-project server-flex-awaitable ;

View File

@ -0,0 +1,31 @@
#
# 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
#
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/advanced/server-flex-awaitable "/")
add_executable (advanced-server-flex-awaitable
${BOOST_BEAST_FILES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
advanced_server_flex_awaitable.cpp
)
set_property(TARGET advanced-server-flex-awaitable PROPERTY FOLDER "example-advanced-server")
target_link_libraries (advanced-server-flex-awaitable
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()

View File

@ -0,0 +1,22 @@
#
# 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
#
import ac ;
project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
;
exe advanced-server-flex-awaitable :
advanced_server_flex_awaitable.cpp
:
<variant>coverage:<build>no
<variant>ubasan:<build>no
;

File diff suppressed because it is too large Load Diff