mirror of
https://github.com/boostorg/mqtt5.git
synced 2025-10-04 12:50:54 +02:00
Update examples, tests & docs
Summary: related to T13242 Reviewers: ivica Reviewed By: ivica Subscribers: miljen, iljazovic Differential Revision: https://repo.mireo.local/D26889
This commit is contained in:
@@ -216,7 +216,7 @@ struct varint_parser : x3::parser<varint_parser> {
|
||||
template <typename It, typename Ctx, typename RCtx, typename Attr>
|
||||
bool parse(
|
||||
It& first, const It last,
|
||||
const Ctx& ctx, RCtx& rctx, Attr& attr
|
||||
const Ctx& ctx, RCtx&, Attr& attr
|
||||
) const {
|
||||
|
||||
It iter = first;
|
||||
|
@@ -10,7 +10,9 @@
|
||||
#include <boost/asio/ip/tcp.hpp>
|
||||
#include <boost/asio/any_completion_handler.hpp>
|
||||
|
||||
#include <boost/beast/websocket.hpp>
|
||||
#include <boost/beast/http/field.hpp>
|
||||
#include <boost/beast/websocket/rfc6455.hpp>
|
||||
#include <boost/beast/websocket/stream_base.hpp>
|
||||
|
||||
#include <async_mqtt5/error.hpp>
|
||||
|
||||
@@ -133,7 +135,7 @@ public:
|
||||
do_ws_handshake(std::move(ep), std::move(ap));
|
||||
}
|
||||
|
||||
void do_ws_handshake(endpoint ep, authority_path ap) {
|
||||
void do_ws_handshake(endpoint, authority_path ap) {
|
||||
if constexpr (has_ws_handshake<Stream>) {
|
||||
using namespace boost::beast;
|
||||
|
||||
|
@@ -71,7 +71,7 @@ public:
|
||||
void operator()(
|
||||
on_read, typename Owner::stream_ptr stream_ptr,
|
||||
std::array<std::size_t, 2> ord, error_code read_ec, size_t bytes_read,
|
||||
error_code timer_ec
|
||||
error_code
|
||||
) {
|
||||
if (!_owner.is_open())
|
||||
return complete(asio::error::operation_aborted, bytes_read);
|
||||
|
Reference in New Issue
Block a user