AWS IoT Device SDK C++ v2
1.34.0
AWS IoT Device SDK C++ v2
|
#include <Bootstrap.h>
Public Member Functions | |
ClientBootstrap (EventLoopGroup &elGroup, HostResolver &resolver, Allocator *allocator=ApiAllocator()) noexcept | |
ClientBootstrap (Allocator *allocator=ApiAllocator()) noexcept | |
~ClientBootstrap () | |
ClientBootstrap (const ClientBootstrap &)=delete | |
ClientBootstrap & | operator= (const ClientBootstrap &)=delete |
ClientBootstrap (ClientBootstrap &&)=delete | |
ClientBootstrap & | operator= (ClientBootstrap &&)=delete |
operator bool () const noexcept | |
int | LastError () const noexcept |
void | SetShutdownCompleteCallback (OnClientBootstrapShutdownComplete callback) |
void | EnableBlockingShutdown () noexcept |
A ClientBootstrap handles creation and setup of socket connections to specific endpoints.
Note that ClientBootstrap may not clean up all its behind-the-scenes resources immediately upon destruction. If you need to know when behind-the-scenes shutdown is complete, use SetShutdownCompleteCallback() or EnableBlockingShutdown() (only safe on main thread).
|
noexcept |
elGroup | EventLoopGroup to use. |
resolver | DNS host resolver to use. |
allocator | memory allocator to use |
|
noexcept |
Aws::Crt::Io::ClientBootstrap::~ClientBootstrap | ( | ) |
|
delete |
|
delete |
|
noexcept |
Force the ClientBootstrap's destructor to block until all behind-the-scenes resources finish shutting down.
This isn't necessary during the normal flow of an application, but it is useful for scenarios, such as tests, that need deterministic shutdown ordering. Be aware, if you use this anywhere other than the main thread, YOU WILL MOST LIKELY CAUSE A DEADLOCK.
Use SetShutdownCompleteCallback() for a thread-safe way to know when shutdown is complete.
|
noexcept |
|
noexcept |
|
delete |
|
delete |
void Aws::Crt::Io::ClientBootstrap::SetShutdownCompleteCallback | ( | OnClientBootstrapShutdownComplete | callback | ) |
Set function to invoke when ClientBootstrap's behind-the-scenes resources finish shutting down. This function may be invoked on any thread. Shutdown begins when the ClientBootstrap's destructor runs.