Struct SolidSyslogSwitchingSenderConfig¶
ClassList > SolidSyslogSwitchingSenderConfig
#include <SolidSyslogSwitchingSender.h>
struct SolidSyslogSwitchingSenderConfig
{
struct SolidSyslogSender** Senders;
size_t SenderCount;
SolidSyslogSwitchingSenderSelector Selector;
void* SelectorContext;
};
Detailed Description¶
Wiring for SolidSyslogSwitchingSender_Create, a sender that fronts several inner senders and picks one per message via Selector (dual-SIEM, failover).
Senders and Selector are required, as is at least one sender and every element of Senders within SenderCount (NULL in any of them, or a SenderCount of 0, makes Create fall back to the shared NullSender). The Senders array and the inner senders it points to must outlive the created handle, and the elements are checked at Create only: the array is read on every Send, so one set to NULL afterwards is called as a vtable. Swap an element for its replacement, never for NULL. The config struct itself is copied at Create and may be transient. Switching away from a sender disconnects it.
Public Attributes Documentation¶
Selector¶
SelectorContext¶
Passed to Selector unchanged.
SenderCount¶
Length of Senders; also the exclusive upper bound the Selector's index is checked against.
Senders¶
The documentation for this class was generated from the following file Core/Interface/SolidSyslogSwitchingSender.h