13 Commits

Author SHA1 Message Date
Mohammad Nejati
19c38c308a Replace detail/work_guard.hpp with net::executor_work_guard
In newer versions of Asio, `executor_work_guard<>` can be used even when
`ASIO_NO_TS_EXECUTORS` is defined.
2025-04-27 16:08:05 +03:30
Mohammad Nejati
e55670d0d0 Remove Boost.Scope dependency from examples 2024-11-26 16:51:00 +03:30
Mohammad Nejati
827ecf5e93 Organize source files in CMakeLists with source_group 2024-11-25 11:41:40 +03:30
Mohammad Nejati
75e45287fb Refactor CMakeLists
Closes #2471
Closes #1816
2024-11-25 11:41:40 +03:30
Mohammad Nejati
3ddcf4ed38 Jamfile cleanup 2024-09-04 22:37:14 +03:30
René Ferdinand Rivera Morell
2bda7870fe Add support for modular build structure. (#2905)
* Use beast exclusive valgrind feature.

* Make the library modular usable.

* Switch to library requirements instead of source. As source puts extra source in install targets.

* Add Beast root dir for includes. As some tests refer to files relative to that.

* Replace relative docca refs with project based.

* Avoid mtuliple openssl configurations.

* Always declare openssl. If it's empty and duplicate it will be ignored.

* Add missing import-search for cconfig/predef checks.

* Add requires-b2 check to top-level build file.

* Bump B2 require to 5.2

* Update copyright dates.

* Move inter-lib dependencies to a project variable and into the build targets.

* Update build deps.

* Update build deps.

* The http/client/body example uses the source header from json instead of the linked library.
2024-09-01 11:26:02 +03:30
Mohammad Nejati
375b0b5ee8 server-flex-awaitable: connections get their own strand 2024-07-08 12:13:16 +03:30
Mohammad Nejati
ff5672ec07 awaitable examples are simplified
No need for `rebind_executor` as `asio::deferred` is now the default completion token.
2024-07-07 14:58:49 +03:30
Mohammad Nejati
03b792faac net::ssl::stream is canonical in examples
We no longer need to use beast::ssl_stream to improve write performance, as
Asio now linearizes scatter/gather I/O in ssl::stream:
17637a48cc
2024-05-31 16:45:52 +03:30
Mohammad Nejati
5998feda44 Fix write loop in advanced server examples
Fixes #2739
2024-01-02 21:28:58 +03:30
Klemens Morgenstern
ba25a117a7 server-flex-awaitable example resets parser.
Closes #2715.
2023-08-18 11:40:20 +08:00
Klemens
bfd5e55093 advanced_server_flex_awaitable doesn't rely on transitive include. 2023-01-04 08:44:00 +08:00
Klemens Morgenstern
09bfca1fa1 awaitable examples.
Closes #2104.
2022-10-30 00:13:54 +08:00