Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ onConnectedReaders()

template<typename Key, typename Value, typename UpdateTag>
void DataStorm::Writer< Key, Value, UpdateTag >::onConnectedReaders ( std::function< void(std::vector< std::string >)> init,
std::function< void(CallbackReason, std::string)> update )
noexcept

Calls the given functions to provide the initial set of connected readers and when a new reader connects or disconnects.

If callback functions are already set, they will be replaced. The init callback is always called after this method returns to provide the initial set of connected readers. The update callback is called when new readers connect or disconnect.

Parameters
initThe function to call with the initial set of connected readers.
updateThe function to call when a new reader connects or disconnects.

Definition at line 1325 of file DataStorm.h.