AWS IoT Device SDK C++ v2
1.34.0
AWS IoT Device SDK C++ v2
|
#include <SecureTunnel.h>
Friends | |
class | SecureTunnel |
Represents a unique configuration for a secure tunnel
Aws::Iotsecuretunneling::SecureTunnelBuilder::SecureTunnelBuilder | ( | 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 | ||
) |
Constructor arguments are the minimum required to create a secure tunnel
Aws::Iotsecuretunneling::SecureTunnelBuilder::SecureTunnelBuilder | ( | Crt::Allocator * | allocator, |
const Crt::Io::SocketOptions & | socketOptions, | ||
const std::string & | accessToken, | ||
aws_secure_tunneling_local_proxy_mode | localProxyMode, | ||
const std::string & | endpointHost | ||
) |
Constructor arguments are the minimum required to create a secure tunnel
Aws::Iotsecuretunneling::SecureTunnelBuilder::SecureTunnelBuilder | ( | Crt::Allocator * | allocator, |
const std::string & | accessToken, | ||
aws_secure_tunneling_local_proxy_mode | localProxyMode, | ||
const std::string & | endpointHost | ||
) |
Constructor arguments are the minimum required to create a secure tunnel
|
noexcept |
Will return a shared pointer to a new SecureTunnel that countains a new aws_secure_tunnel that is generated using the set members of SecureTunnelBuilder. On failure, the shared_ptr will contain a nullptr, call Crt::LastErrorOrUnknown(); to get the reason for failure.
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithClientToken | ( | const std::string & | clientToken | ) |
Sets Client Token to a specified value rather than allowing the secure tunnel to auto-generate one.
clientToken | string to use as unique client token for secure tunnel connection |
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithHttpClientConnectionProxyOptions | ( | const Crt::Http::HttpClientConnectionProxyOptions & | httpClientConnectionProxyOptions | ) |
Sets http proxy options.
httpClientConnectionProxyOptions | http proxy configuration for connection establishment |
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithOnConnectionComplete | ( | OnConnectionComplete | onConnectionComplete | ) |
Deprecated - Use WithOnConnectionSuccess() and WithOnConnectionFailure()
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithOnConnectionFailure | ( | OnConnectionFailure | onConnectionFailure | ) |
Setup callback handler trigged when an Secure Tunnel fails a connection attempt.
onConnectionFailure |
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithOnConnectionReset | ( | OnConnectionReset | onConnectionReset | ) |
Setup callback handler trigged when an Secure Tunnel resets a connection.
onConnectionReset |
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithOnConnectionShutdown | ( | OnConnectionShutdown | onConnectionShutdown | ) |
Setup callback handler trigged when an Secure Tunnel shuts down connection to the secure tunnel service.
onConnectionShutdown |
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithOnConnectionStarted | ( | OnConnectionStarted | onConnectionStarted | ) |
Setup callback handler trigged when an Secure Tunnel starts a connection with a source through the secure tunnel service.
onConnectionStarted |
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithOnConnectionSuccess | ( | OnConnectionSuccess | onConnectionSuccess | ) |
Setup callback handler trigged when an Secure Tunnel establishes a connection and receives available service ids.
onConnectionSuccess |
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithOnDataReceive | ( | OnDataReceive | onDataReceive | ) |
Deprecated - Use WithOnMessageReceived()
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithOnMessageReceived | ( | OnMessageReceived | onMessageReceived | ) |
Setup callback handler trigged when an Secure Tunnel receives a Message through the secure tunnel service.
onMessageReceived |
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithOnSendDataComplete | ( | OnSendDataComplete | onSendDataComplete | ) |
Deprecated - Use WithOnSendMessageComplete
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithOnSendMessageComplete | ( | OnSendMessageComplete | onSendMessageComplete | ) |
Setup callback handler trigged when an Secure Tunnel completes sending a message to the secure tunnel service.
onSendMessageComplete |
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithOnSessionReset | ( | OnSessionReset | onSessionReset | ) |
Setup callback handler trigged when an Secure Tunnel receives a session reset from the secure tunnel service.
onSessionReset |
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithOnStopped | ( | OnStopped | onStopped | ) |
Setup callback handler trigged when an Secure Tunnel completes entering a stopped state
onStopped |
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithOnStreamReset | ( | OnStreamReset | onStreamReset | ) |
Setup callback handler trigged when an Secure Tunnel receives a stream reset.
onStreamReset |
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithOnStreamStart | ( | OnStreamStart | onStreamStart | ) |
Deprecated - Use WithOnStreamStarted
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithOnStreamStarted | ( | OnStreamStarted | onStreamStarted | ) |
Setup callback handler trigged when an Secure Tunnel starts a stream with a source through the secure tunnel service.
onStreamStarted |
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithOnStreamStopped | ( | OnStreamStopped | onStreamStopped | ) |
Setup callback handler trigged when an Secure Tunnel stops a stream.
onStreamStopped |
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithRootCa | ( | const std::string & | rootCa | ) |
Sets rootCA to be used for this secure tunnel connection overriding the default trust store.
rootCa | string to use as rootCA for secure tunnel connection |
SecureTunnelBuilder & Aws::Iotsecuretunneling::SecureTunnelBuilder::WithTlsConnectionOptions | ( | const Crt::Io::TlsConnectionOptions & | tslOptions | ) |
Sets TLS options to be used by secure tunnel connection.
tslOptions | TLS options to use for secure tunnel connection. If provided, the rootCA settings in these options will override any rootCA provided to the builder. |
|
friend |