Appearance
struct flake::ConnectionSink
Callback interface for connection lifecycle events. More...
#include <platform/flake/Connection.h>
Public Functions
| Name | |
|---|---|
| ConnectionSink(constConnectionSink & ) =deleted | |
| ConnectionSink & | operator=(constConnectionSink & ) =deleted |
| ConnectionSink(ConnectionSink && ) =deleted | |
| ConnectionSink & | operator=(ConnectionSink && ) =deleted |
| virtual void | onDisconnected() =0 Called when the connection to the router has been lost. |
Protected Functions
| Name | |
|---|---|
| ConnectionSink() =default | |
| ~ConnectionSink() =default |
Detailed Description
cpp
struct flake::ConnectionSink;Callback interface for connection lifecycle events.
Note: Non-copyable, non-movable.
Implement this interface and pass it to one of the flakeInitialize* functions to be notified when the connection to the router drops.
Public Functions Documentation
function ConnectionSink
cpp
ConnectionSink(
constConnectionSink &
) =deletedfunction operator=
cpp
ConnectionSink & operator=(
constConnectionSink &
) =deletedfunction ConnectionSink
cpp
ConnectionSink(
ConnectionSink &&
) =deletedfunction operator=
cpp
ConnectionSink & operator=(
ConnectionSink &&
) =deletedfunction onDisconnected
cpp
virtual void onDisconnected() =0Called when the connection to the router has been lost.
The implementation may attempt to reconnect or clean up resources.
Protected Functions Documentation
function ConnectionSink
cpp
ConnectionSink() =defaultfunction ~ConnectionSink
cpp
~ConnectionSink() =default