AWS IoT Device SDK C++ v2
1.39.0
AWS IoT Device SDK C++ v2
|
#include <EventStreamClient.h>
Public Member Functions | |
virtual | ~ConnectionLifecycleHandler () noexcept=default |
virtual void | OnConnectCallback () |
virtual void | OnDisconnectCallback (RpcError status) |
virtual bool | OnErrorCallback (RpcError status) |
virtual void | OnPingCallback (const Crt::List< EventStreamHeader > &headers, const Crt::Optional< Crt::ByteBuf > &payload) |
Handler interface for connection lifecycle events.
|
virtualdefaultnoexcept |
|
virtual |
This callback is only invoked upon receiving a CONNECT_ACK with the CONNECTION_ACCEPTED flag set by the server. Therefore, once this callback is invoked, the ClientConnection
is ready to be used for sending messages.
|
virtual |
Invoked upon connection shutdown.
status | The status upon disconnection. It can be treated as a bool with true implying a successful disconnection. |
|
virtual |
Invoked upon receiving an error. Use the return value to determine whether or not to force the connection to close.
status | Details about the error encountered. |
|
virtual |
Invoked upon receiving a ping from the server. The headers
and payload
refer to what is contained in the ping message.