Vinnie Falco
fc7b47fc5d
Use suggested timeouts in Websocket examples
2019-02-18 12:18:27 -08:00
Vinnie Falco
00e8c381cd
Examples use ssl_stream
...
fix #1455
2019-02-16 15:09:35 -08:00
Vinnie Falco
22dcb4a3cb
example/cppcon2018 is removed:
...
* Replaced by websocket-chat-multi
2019-02-16 15:09:35 -08:00
Vinnie Falco
ca1b620527
Use std::bind for control_callback
2019-02-16 15:09:34 -08:00
Vinnie Falco
2e62f25701
Use async_op_base::invoke
2019-02-16 15:09:34 -08:00
Vinnie Falco
fdaf2ea7e1
Rename to async_op_base::invoke_now
2019-02-16 13:36:01 -08:00
Vinnie Falco
18447553ca
Examples use bind_front_handler
2019-02-14 17:28:54 -08:00
Vinnie Falco
65cbc158cf
Tidy up example docs and some names
...
fix #1450
2019-02-14 07:53:38 -08:00
Vinnie Falco
ebc5246c47
Rewrite the echo-op example
...
fix #1450
2019-02-13 14:14:34 -08:00
Vinnie Falco
c08ce90e2c
Tidy up a warning
2019-02-13 12:16:22 -08:00
Vinnie Falco
45d722874f
Use tcp_stream, HTTP timeouts in advanced servers
2019-02-10 11:43:15 -08:00
Vinnie Falco
6ee1a88292
Use tcp_stream in WebSocket server examples
2019-02-10 11:42:01 -08:00
Vinnie Falco
920909673a
Use tcp_stream in WebSocket client examples
2019-02-10 11:42:01 -08:00
Vinnie Falco
cab2472ee9
Use timeouts in HTTP client examples
2019-02-10 11:42:01 -08:00
Vinnie Falco
5b97fbb966
Use timeouts in HTTP server examples
2019-02-10 11:42:01 -08:00
Daniel Sewtz
cd28598e5b
Fixes to rfc7230:
...
fix #1435 , fix #1438
* Example and test can be built on msvc v141 15.9.6
using /std:c++17 and BOOST_BEAST_USE_STD_STRING_VIEW.
* changed string_view.to_string() to std:string(string_view),
awaiting availability of Library Fundamentals TS here.
* Reactivated relevant tests to param_list. #ifdef 0 test
exhibited same assertion failed error in debug mode.
Now fixed in DEBUG on msvc v141 15.9.6 with
BOOST_BEAST_USE_STD_STRING_VIEW and /std:c++17.
* Looked up http paramters (transfer-encoding, etc.)
and changed tests as well as fixing comment to
match specs.
2019-02-07 17:37:18 -08:00
Vinnie Falco
bc74cc2374
Spaces not tabs
2019-02-03 17:17:03 -08:00
Vinnie Falco
599104c16a
async_echo supports move-only handlers
...
fix #1420
2019-02-02 10:20:38 -08:00
Vinnie Falco
6a658b5c3a
Remove lowest_layer, add get_lowest_layer (API Change):
...
fix #1417
* New get_lowest_layer free function works for any object
* New lowest_layer_type trait works for any object
* New examples and documentation on layered streams
API Changes:
* The member function lowest_layer is removed from all
types provided by the library:
Actions Required:
* Call the free function get_lowest_layer instead of
member lowest_layer.
2019-02-01 04:31:13 -08:00
Vinnie Falco
383b9cb7f2
Send from the strand
2019-01-21 16:07:00 -08:00
Vinnie Falco
3081f52ad5
Add websocket-chat-multi example:
...
This is the multi-threaded io_context version of the
CppCon2018 WebSocket chat server and client example.
2019-01-21 12:13:04 -08:00
Vinnie Falco
9a8e22950f
websocket stream uses shared_ptr<impl_type>
2019-01-21 08:44:14 -08:00
Vinnie Falco
944b5dcda7
Clear error codes idiomatically
2019-01-20 09:50:43 -08:00
Vinnie Falco
b337abe076
examples use flat_buffer
...
fix #1401
2019-01-15 11:42:05 -08:00
Vinnie Falco
abb8203cbe
session_alloc is thread-safe
...
fix #1408
2019-01-15 11:42:05 -08:00
Johan Rönnkvist
be800436ea
Include error code in call to set_option
2019-01-12 13:14:33 -08:00
Vinnie Falco
3595eb2221
Update networking refresher doc
2019-01-12 13:11:00 -08:00
Vinnie Falco
0006ab3b2b
make_printable replaces buffers rename (API Change):
...
* The function buffers is deprecated, use the new
function make_printable as the replacement.
Actions Required:
* Replace call sites to use make_printable instead of buffers,
and also include make_printable.hpp instead of ostream.hpp.
2018-12-19 20:59:20 -08:00
Vinnie Falco
c11682032b
Crawler example clears the response before each read:
...
fix #1100
Unfortunately the example still seems to hang, tested
with 20 threads.
2018-12-06 15:50:24 -08:00
Brett Robinson
88eef1e9e3
Improvements to echo-op example:
...
close #1347
* Set SO_REUSEADDR in listener
* Use newline as the delimiter in async_read_until
* Add arg parsing and exit status to echo-op example
2018-12-03 17:08:40 -08:00
Vinnie Falco
b3a8e6edb5
Tidy up calls to placement new
2018-12-02 19:48:42 -08:00
Vinnie Falco
f995fd41a3
net is a namespace alias for boost::asio:
...
The namespace alias beast::net replaces boost::asio in all code
and documentation.
2018-12-02 17:51:43 -08:00
Vinnie Falco
5bff4ed8ab
Tidy up warnings and deprecated usage:
...
fix #1290
* BOOST_ASIO_NO_DEPRECATED=1 is now set
* Fix various warnings from the Boost regression test matrix
* Fix a bug in advanced servers when checking for a timeout
2018-11-26 15:30:48 -08:00
Vinnie Falco
7b93cca28a
example/cppcon2018 only requires C++11
2018-11-22 18:34:25 -08:00
Vinnie Falco
e0b3aa7745
Fix warning in is_ssl_handshake
2018-11-22 18:34:09 -08:00
Vinnie Falco
15dd535c24
Use bind_front_handler:
...
The implementation uses bind_front_handler to reduce the
resources consumed when instantiating templates during
compilation.
2018-11-21 12:47:38 -08:00
Vinnie Falco
c18f3f0ef1
Rename to _experimental directory
2018-11-12 06:52:39 -08:00
Vinnie Falco
bc2f5f1426
Add CppCon2018 chat server example and video
2018-11-08 16:46:38 -08:00
Vinnie Falco
04bac8dce9
Remove extraneous strand from example
...
fix #1288
2018-11-03 19:30:16 -07:00
jarle
2b977f2770
Fix timer on websocket upgrade in examples
...
fix #1091 , fix #1240 , fix #1253
2018-10-07 10:38:36 -07:00
luz.paz
f3212eba48
Fix some typos:
...
fix #1255
Found via `codespell -q 3 -L uint,te,tim --skip="./test/extern/zlib*,./example/http/client/crawl*"`
2018-10-07 10:35:12 -07:00
Vinnie Falco
82e87ea188
Workaround for http-server-fast and libstdc++:
...
This fixes a problem where libstdc++ incorrectly assumes that the
allocator used with basic_string is DefaultConstructible.
See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56437
2018-09-23 19:08:30 -07:00
PeterW3
4643b0565e
Verify certificates in client examples:
...
fix #1237
HTTP client examples now verify the server's certificate
and generate an error if the certificate is invalid or
expired:
* Set certificate verify mode
* Remove duplicate root certificate
2018-09-23 10:12:08 -07:00
felixguendling
ba4bdfed71
Fix http_server_stackless_ssl.cpp example
...
fix #1210
Write to self_.stream_ instead of the socket_ directly
2018-07-28 07:00:51 -07:00
Vinnie Falco
92d34b9e3b
Use static_cast instead
...
fix #1163
2018-07-15 09:11:15 -07:00
cos-public
c2ecba968c
Check error in example set_option
...
fix #1186
2018-07-12 11:07:10 -07:00
Arvid Norberg
478c19e863
Use the root certificate which matches the fingerprint:
...
fix #1121
https://www.geotrust.com/resources/root_certificates/certificates/GeoTrust_Global_CA.pem
2018-05-08 14:08:28 -07:00
Vinnie Falco
f48b978044
Use a shared string for example HTTP server doc roots
...
fix #1109
2018-05-03 14:18:33 -07:00
Vinnie Falco
292801fef7
Add ssl_stream to experimental:
...
The ssl_stream wrapper provides C++11 move semantics for ssl::stream,
as well as incorporating the flat_stream workaround for a performance
problem with ssl::stream writes and buffer sequences having length
greater than one.
2018-05-02 08:32:09 -07:00
Vinnie Falco
6108cf3eb7
Add flat_stream to experimental:
...
This adds a new stream wrapper class template designed to address
a performance shortcoming of boost::asio::ssl::stream.
2018-05-02 08:32:07 -07:00