ObjectBox C and C++ API 4.3.0
 
Loading...
Searching...
No Matches
obx::SyncClientConnectionListener Class Referenceabstract

Listens to sync client connection events. More...

#include <objectbox-sync.hpp>

Inheritance diagram for obx::SyncClientConnectionListener:
Inheritance graph

Public Member Functions

virtual ~SyncClientConnectionListener ()=default
 
virtual void connected () noexcept=0
 Called when connection is established (on first connect or after a reconnection).
 
virtual void disconnected () noexcept=0
 Called when the client is disconnected from the sync server, e.g. due to a network error. Depending on the configuration, the sync client typically tries to reconnect automatically, triggering connected() when successful.
 

Detailed Description

Listens to sync client connection events.

Constructor & Destructor Documentation

◆ ~SyncClientConnectionListener()

virtual obx::SyncClientConnectionListener::~SyncClientConnectionListener ( )
virtualdefault

Member Function Documentation

◆ connected()

virtual void obx::SyncClientConnectionListener::connected ( )
pure virtualnoexcept

Called when connection is established (on first connect or after a reconnection).

◆ disconnected()

virtual void obx::SyncClientConnectionListener::disconnected ( )
pure virtualnoexcept

Called when the client is disconnected from the sync server, e.g. due to a network error. Depending on the configuration, the sync client typically tries to reconnect automatically, triggering connected() when successful.