mirror of
https://github.com/boostorg/mqtt5.git
synced 2025-07-30 04:27:34 +02:00
Move any_authenticator, control_packet and pid_allocator to detail namespace
Summary: related to T13767 Reviewers: ivica Reviewed By: ivica Subscribers: miljen, iljazovic Differential Revision: https://repo.mireo.local/D28084
This commit is contained in:
@ -9,13 +9,11 @@
|
||||
|
||||
#include <async_mqtt5/types.hpp>
|
||||
|
||||
namespace async_mqtt5 {
|
||||
namespace async_mqtt5::detail {
|
||||
|
||||
namespace asio = boost::asio;
|
||||
using error_code = boost::system::error_code;
|
||||
|
||||
namespace detail {
|
||||
|
||||
using auth_handler_type = asio::any_completion_handler<
|
||||
void (error_code ec, std::string auth_data)
|
||||
>;
|
||||
@ -80,8 +78,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
} // end namespace detail
|
||||
|
||||
class any_authenticator {
|
||||
std::string _method;
|
||||
std::shared_ptr<detail::auth_fun_base> _auth_fun;
|
||||
@ -128,7 +124,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
} // end namespace async_mqtt5
|
||||
} // end namespace async_mqtt5::detail
|
||||
|
||||
|
||||
#endif // !ASYNC_MQTT5_ANY_AUTHENTICATOR
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
#include <async_mqtt5/types.hpp>
|
||||
|
||||
namespace async_mqtt5 {
|
||||
namespace async_mqtt5::detail {
|
||||
|
||||
/* max varint number (268'435'455) + fixed header size (1 + 4) */
|
||||
static constexpr int32_t default_max_send_size = 268'435'460;
|
||||
@ -167,6 +167,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
} // end namespace async_mqtt5
|
||||
} // end namespace async_mqtt5::detail
|
||||
|
||||
#endif // !ASYNC_MQTT5_CONTROL_PACKET_HPP
|
||||
|
@ -15,6 +15,8 @@
|
||||
|
||||
namespace async_mqtt5::test {
|
||||
|
||||
using control_code_e = async_mqtt5::detail::control_code_e;
|
||||
|
||||
template <typename ...Strings>
|
||||
std::string concat_strings(Strings&&... strings) {
|
||||
std::ostringstream stream;
|
||||
|
Reference in New Issue
Block a user