mirror of
https://github.com/boostorg/mqtt5.git
synced 2025-08-02 22:14:36 +02:00
Handle all MSVC warnings
Summary: related to T13409 Reviewers: ivica Reviewed By: ivica Subscribers: miljen, iljazovic Differential Revision: https://repo.mireo.local/D27152
This commit is contained in:
@@ -21,7 +21,7 @@ struct tls_handshake_type<asio::ssl::stream<StreamBase>> {
|
||||
template <typename StreamBase>
|
||||
void assign_tls_sni(
|
||||
const authority_path& ap,
|
||||
asio::ssl::context& ctx,
|
||||
asio::ssl::context& /* ctx */,
|
||||
asio::ssl::stream<StreamBase>& stream
|
||||
) {
|
||||
SSL_set_tlsext_host_name(stream.native_handle(), ap.host.c_str());
|
||||
|
@@ -1,10 +1,10 @@
|
||||
|
||||
void run_openssl_tls_examples();
|
||||
void run_tcp_examples();
|
||||
void run_openssl_tls_examples();
|
||||
void run_websocket_tcp_examples();
|
||||
void run_websocket_tls_examples();
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
int main() {
|
||||
|
||||
run_tcp_examples();
|
||||
run_openssl_tls_examples();
|
||||
|
@@ -18,11 +18,11 @@ void publish_qos0_tcp() {
|
||||
client_type c(ioc, "");
|
||||
|
||||
connect_props props;
|
||||
props[prop::maximum_packet_size] = 1024;
|
||||
props[prop::maximum_packet_size] = int16_t(1024);
|
||||
|
||||
c.credentials("test-qos0-tcp", "", "")
|
||||
.brokers("emqtt.mireo.local", 1883)
|
||||
.will({ "test/mqtt-test", "Client disconnected!",qos_e::at_least_once })
|
||||
.will({ "test/mqtt-test", "Client disconnected!", qos_e::at_least_once })
|
||||
.connect_properties(std::move(props))
|
||||
.run();
|
||||
|
||||
|
@@ -15,7 +15,7 @@ namespace boost::beast::websocket {
|
||||
|
||||
template <typename TeardownHandler>
|
||||
void async_teardown(
|
||||
boost::beast::role_type role,
|
||||
boost::beast::role_type /* role */,
|
||||
asio::ssl::stream<asio::ip::tcp::socket>& stream,
|
||||
TeardownHandler&& handler
|
||||
) {
|
||||
@@ -35,7 +35,7 @@ struct tls_handshake_type<asio::ssl::stream<StreamBase>> {
|
||||
template <typename StreamBase>
|
||||
void assign_tls_sni(
|
||||
const authority_path& ap,
|
||||
asio::ssl::context& ctx,
|
||||
asio::ssl::context& /* ctx */,
|
||||
asio::ssl::stream<StreamBase>& stream
|
||||
) {
|
||||
SSL_set_tlsext_host_name(stream.native_handle(), ap.host.c_str());
|
||||
|
Reference in New Issue
Block a user