|
AWS IoT Device SDK C++ v2 1.44.1
AWS IoT Device SDK C++ v2
|
#include <SecureTunnel.h>
Public Member Functions | |
| SecureTunnel (Crt::Allocator *allocator, Crt::Io::ClientBootstrap *clientBootstrap, const Crt::Io::SocketOptions &socketOptions, const std::string &accessToken, aws_secure_tunneling_local_proxy_mode localProxyMode, const std::string &endpointHost, const std::string &rootCa, OnConnectionComplete onConnectionComplete, OnConnectionShutdown onConnectionShutdown, OnSendDataComplete onSendDataComplete, OnDataReceive onDataReceive, OnStreamStart onStreamStart, OnStreamReset onStreamReset, OnSessionReset onSessionReset) | |
| SecureTunnel (Crt::Allocator *allocator, const Crt::Io::SocketOptions &socketOptions, const std::string &accessToken, aws_secure_tunneling_local_proxy_mode localProxyMode, const std::string &endpointHost, const std::string &rootCa, OnConnectionComplete onConnectionComplete, OnConnectionShutdown onConnectionShutdown, OnSendDataComplete onSendDataComplete, OnDataReceive onDataReceive, OnStreamStart onStreamStart, OnStreamReset onStreamReset, OnSessionReset onSessionReset) | |
| virtual | ~SecureTunnel () |
| SecureTunnel (const SecureTunnel &)=delete | |
| SecureTunnel & | operator= (const SecureTunnel &)=delete |
| SecureTunnel (SecureTunnel &&) noexcept | |
| SecureTunnel & | operator= (SecureTunnel &&) noexcept |
| bool | IsValid () |
| int | Start () |
| int | Stop () |
| int | SendMessage (std::shared_ptr< Message > messageOptions) noexcept |
| int | SendStreamStart () |
| int | SendStreamStart (std::string serviceId) |
| int | SendStreamStart (Crt::ByteCursor serviceId) |
| int | SendStreamStart (std::string serviceId, uint32_t connectionId) |
| int | SendStreamStart (Crt::ByteCursor serviceId, uint32_t connectionId) |
| int | SendConnectionStart (uint32_t connectionId) |
| int | SendConnectionStart (std::string serviceId, uint32_t connectionId) |
| int | SendConnectionStart (Crt::ByteCursor serviceId, uint32_t connectionId) |
| aws_secure_tunnel * | GetUnderlyingHandle () |
| int | Connect () |
| int | Close () |
| void | Shutdown () |
| int | SendData (const Crt::ByteCursor &data) |
| int | SendStreamReset () |
Friends | |
| class | SecureTunnelBuilder |
| Aws::Iotsecuretunneling::SecureTunnel::SecureTunnel | ( | Crt::Allocator * | allocator, |
| Crt::Io::ClientBootstrap * | clientBootstrap, | ||
| const Crt::Io::SocketOptions & | socketOptions, | ||
| const std::string & | accessToken, | ||
| aws_secure_tunneling_local_proxy_mode | localProxyMode, | ||
| const std::string & | endpointHost, | ||
| const std::string & | rootCa, | ||
| OnConnectionComplete | onConnectionComplete, | ||
| OnConnectionShutdown | onConnectionShutdown, | ||
| OnSendDataComplete | onSendDataComplete, | ||
| OnDataReceive | onDataReceive, | ||
| OnStreamStart | onStreamStart, | ||
| OnStreamReset | onStreamReset, | ||
| OnSessionReset | onSessionReset ) |
Deprecated - Use SecureTunnelBuilder
| Aws::Iotsecuretunneling::SecureTunnel::SecureTunnel | ( | Crt::Allocator * | allocator, |
| const Crt::Io::SocketOptions & | socketOptions, | ||
| const std::string & | accessToken, | ||
| aws_secure_tunneling_local_proxy_mode | localProxyMode, | ||
| const std::string & | endpointHost, | ||
| const std::string & | rootCa, | ||
| OnConnectionComplete | onConnectionComplete, | ||
| OnConnectionShutdown | onConnectionShutdown, | ||
| OnSendDataComplete | onSendDataComplete, | ||
| OnDataReceive | onDataReceive, | ||
| OnStreamStart | onStreamStart, | ||
| OnStreamReset | onStreamReset, | ||
| OnSessionReset | onSessionReset ) |
Deprecated - Use SecureTunnelBuilder
|
virtual |
|
delete |
|
noexcept |
| int Aws::Iotsecuretunneling::SecureTunnel::Close | ( | ) |
Deprecated - Use Stop()
| int Aws::Iotsecuretunneling::SecureTunnel::Connect | ( | ) |
Deprecated - use Start()
| aws_secure_tunnel * Aws::Iotsecuretunneling::SecureTunnel::GetUnderlyingHandle | ( | ) |
| bool Aws::Iotsecuretunneling::SecureTunnel::IsValid | ( | ) |
|
delete |
|
noexcept |
| int Aws::Iotsecuretunneling::SecureTunnel::SendConnectionStart | ( | Crt::ByteCursor | serviceId, |
| uint32_t | connectionId ) |
Notifies the secure tunnel that you want to start a connection with the Destination device.
| serviceId | The Service Id to start the connection on. |
| connectionId | The connection id to start the connection on. |
| int Aws::Iotsecuretunneling::SecureTunnel::SendConnectionStart | ( | std::string | serviceId, |
| uint32_t | connectionId ) |
Notifies the secure tunnel that you want to start a connection with the Destination device.
| serviceId | The Service Id to start the connection on. |
| connectionId | The connection id to start the connection on. |
| int Aws::Iotsecuretunneling::SecureTunnel::SendConnectionStart | ( | uint32_t | connectionId | ) |
Notifies the secure tunnel that you want to start a connection with the Destination device.
| connectionId | The connection id to start the connection on. |
| int Aws::Iotsecuretunneling::SecureTunnel::SendData | ( | const Crt::ByteCursor & | data | ) |
Deprecated - Use SendMessage()
|
noexcept |
| int Aws::Iotsecuretunneling::SecureTunnel::SendStreamReset | ( | ) |
| int Aws::Iotsecuretunneling::SecureTunnel::SendStreamStart | ( | ) |
Notifies the secure tunnel that you want to start a stream with the Destination device. This will result in a V1 stream.
| int Aws::Iotsecuretunneling::SecureTunnel::SendStreamStart | ( | Crt::ByteCursor | serviceId | ) |
Notifies the secure tunnel that you want to start a stream with the Destination device on a specific service id. This will result in a V2 stream.
| serviceId | The Service Id to start a stream on. |
| int Aws::Iotsecuretunneling::SecureTunnel::SendStreamStart | ( | Crt::ByteCursor | serviceId, |
| uint32_t | connectionId ) |
Notifies the secure tunnel that you want to start a stream with the Destination device on a specific service id. This will result in a V2 stream.
| serviceId | The Service Id to start a stream on. |
| connectionId | The Connection Id to start the stream on. |
| int Aws::Iotsecuretunneling::SecureTunnel::SendStreamStart | ( | std::string | serviceId | ) |
Notifies the secure tunnel that you want to start a stream with the Destination device on a specific service id. This will result in a V2 stream.
| serviceId | The Service Id to start a stream on. |
| int Aws::Iotsecuretunneling::SecureTunnel::SendStreamStart | ( | std::string | serviceId, |
| uint32_t | connectionId ) |
Notifies the secure tunnel that you want to start a stream with the Destination device on a specific service id. This will result in a V2 stream.
| serviceId | The Service Id to start a stream on. |
| connectionId | The Connection Id to start the stream on. |
| void Aws::Iotsecuretunneling::SecureTunnel::Shutdown | ( | ) |
Deprecated - Use Stop()
| int Aws::Iotsecuretunneling::SecureTunnel::Start | ( | ) |
Notifies the secure tunnel that you want it to attempt to connect to the configured endpoint. The secure tunnel will attempt to stay connected and attempt to reconnect if disconnected.
| int Aws::Iotsecuretunneling::SecureTunnel::Stop | ( | ) |
Notifies the secure tunnel that you want it to transition to the stopped state, disconnecting any existing connection and stopping subsequent reconnect attempts.
|
friend |