AWS IoT Device SDK C++ v2 1.44.1
AWS IoT Device SDK C++ v2
Loading...
Searching...
No Matches
IotSecureTunnelingClient.h
Go to the documentation of this file.
1#pragma once
2/* Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3*
4* Licensed under the Apache License, Version 2.0 (the "License").
5* You may not use this file except in compliance with the License.
6* A copy of the License is located at
7*
8* http://aws.amazon.com/apache2.0
9*
10* or in the "license" file accompanying this file. This file is distributed
11* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12* express or implied. See the License for the specific language governing
13* permissions and limitations under the License.
14
15* This file is generated
16*/
18
20#include <aws/crt/Types.h>
21
23
24namespace Aws
25{
27 {
28
31
32 using OnSubscribeComplete = std::function<void(int ioErr)>;
33 using OnPublishComplete = std::function<void(int ioErr)>;
34
36 std::function<void(Aws::Iotsecuretunneling::SecureTunnelingNotifyResponse *, int ioErr)>;
37
39 {
40 public:
41 IotSecureTunnelingClient(const std::shared_ptr<Aws::Crt::Mqtt::MqttConnection> &connection);
42
43 operator bool() const noexcept;
44 int GetLastError() const noexcept;
45
50 const OnSubscribeComplete &onSubAck);
51
52 private:
53 std::shared_ptr<Aws::Crt::Mqtt::MqttConnection> m_connection;
54 };
55
56 } // namespace Iotsecuretunneling
57
58} // namespace Aws
int GetLastError() const noexcept
Definition IotSecureTunnelingClient.cpp:37
IotSecureTunnelingClient(const std::shared_ptr< Aws::Crt::Mqtt::MqttConnection > &connection)
Definition IotSecureTunnelingClient.cpp:26
bool SubscribeToTunnelsNotify(const Aws::Iotsecuretunneling::SubscribeToTunnelsNotifyRequest &request, Aws::Crt::Mqtt::QOS qos, const OnSubscribeToTunnelsNotifyResponse &handler, const OnSubscribeComplete &onSubAck)
Definition IotSecureTunnelingClient.cpp:42
Definition SecureTunnelingNotifyResponse.h:29
Definition SubscribeToTunnelsNotifyRequest.h:29
aws_mqtt_qos QOS
Definition Types.h:40
Definition IotSecureTunnelingClient.h:27
std::function< void(Aws::Iotsecuretunneling::SecureTunnelingNotifyResponse *, int ioErr)> OnSubscribeToTunnelsNotifyResponse
Definition IotSecureTunnelingClient.h:35
std::function< void(int ioErr)> OnPublishComplete
Definition IotSecureTunnelingClient.h:33
std::function< void(int ioErr)> OnSubscribeComplete
Definition IotSecureTunnelingClient.h:32
Definition Allocator.h:11
#define AWS_IOTSECURETUNNELING_API
Definition Exports.h:30