Skip to content

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 voidonDisconnected() =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 & 
) =deleted

function operator=

cpp
ConnectionSink & operator=(
    constConnectionSink & 
) =deleted

function ConnectionSink

cpp
ConnectionSink(
    ConnectionSink && 
) =deleted

function operator=

cpp
ConnectionSink & operator=(
    ConnectionSink && 
) =deleted

function onDisconnected

cpp
virtual void onDisconnected() =0

Called 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() =default

function ~ConnectionSink

cpp
~ConnectionSink() =default