Struct PacketManager::callback_config_t

Nested Relationships

This struct is a nested type of Class PacketManager.

Struct Documentation

struct callback_config_t

Configuration for a data reception callback.

Public Members

packet_callback_t data_callback = nullptr

The callback to be called when data is received.

std::function<void(void)> timeout_callback = nullptr

The callback to be called when a timeout occurs.

packet_callback_t timeout_recovery_callback = nullptr

The callback to be called when data is received after a timeout.

std::chrono::steady_clock::duration timeout = std::chrono::steady_clock::duration::zero()

The timeout duration. Zero means no timeout.