Skip to content
1 change: 1 addition & 0 deletions example/websocket/client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ if (OPENSSL_FOUND)
add_subdirectory(async-ssl)
add_subdirectory(async-ssl-system-executor)
add_subdirectory(coro-ssl)
add_subdirectory(crypto-ai-ssl)
add_subdirectory(sync-ssl)
endif ()
1 change: 1 addition & 0 deletions example/websocket/client/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ build-project sync ;
build-project async-ssl ;
build-project async-ssl-system-executor ;
build-project coro-ssl ;
build-project crypto-ai-ssl ;
build-project sync-ssl ;
31 changes: 31 additions & 0 deletions example/websocket/client/crypto-ai-ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# Copyright (c) 2025 Mungo Gill
#
# 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
#

add_executable(websocket-client-crypto-ai-ssl
Jamfile
ai_querier.cpp
historic_price_fetcher.cpp
live_price_listener.cpp
websocket_client_crypto_ai_ssl.cpp)

source_group("" FILES
Jamfile
ai_querier.cpp
historic_price_fetcher.cpp
live_price_listener.cpp
websocket_client_crypto_ai_ssl.cpp)

target_include_directories(websocket-client-crypto-ai-ssl
PRIVATE ${PROJECT_SOURCE_DIR})

target_link_libraries(websocket-client-crypto-ai-ssl
PRIVATE Boost::beast Boost::json Boost::url OpenSSL::SSL OpenSSL::Crypto)

set_target_properties(websocket-client-crypto-ai-ssl
PROPERTIES FOLDER "example-websocket-client")
25 changes: 25 additions & 0 deletions example/websocket/client/crypto-ai-ssl/Jamfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#
# Copyright (c) 2015 Mungo Gill
#
# 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/test//lib-asio-ssl : <library>/boost/beast/test//lib-asio-ssl/<link>static : <build>no ]
;

exe websocket-client-crypto-ai-ssl :
ai_querier.cpp
historic_price_fetcher.cpp
live_price_listener.cpp
websocket_client_crypto_ai_ssl.cpp
:
<variant>coverage:<build>no
<variant>ubasan:<build>no
;
34 changes: 34 additions & 0 deletions example/websocket/client/crypto-ai-ssl/historic_price_fetcher.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
//
// Copyright (c) 2025 Mungo Gill
//
// 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
//

#include "historic_price_fetcher.hpp"

#include <boost/asio/connect.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/ssl.hpp>
#include <boost/asio/ssl/host_name_verification.hpp>
#include <boost/asio/ssl/stream.hpp>
#include <boost/asio/strand.hpp>
#include <boost/beast.hpp>
#include <boost/beast/core.hpp>
#include <boost/beast/websocket.hpp>
#include <boost/beast/websocket/ssl.hpp>
#include <boost/core/ignore_unused.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/json.hpp>
#include <boost/url/format.hpp>
#include <boost/url/parse.hpp>
#include <boost/url/url.hpp>

#include <iostream>
#include <functional>
#include <string>


Loading