Skip to content

File SolidSyslogDatagramErrors.h

FileList > Core > Interface > SolidSyslogDatagramErrors.h

Portable detail codes for the Datagram role, shared by every backend that fills it.

  • #include <stdint.h>
  • #include "SolidSyslogExternC.h"

Public Types Documentation

SolidSyslogDatagramErrors

Detail codes a Datagram role implementation reports through event->Detail, shared by every backend whichever platform provides it.

enum SolidSyslogDatagramErrors {
    SOLIDSYSLOG_DATAGRAM_ERROR_POOL_EXHAUSTED,
    SOLIDSYSLOG_DATAGRAM_ERROR_UNKNOWN_DESTROY,
    SOLIDSYSLOG_DATAGRAM_ERROR_NEXT_HOP_UNRESOLVED,
    SOLIDSYSLOG_DATAGRAM_ERROR_ALREADY_OPEN,
    SOLIDSYSLOG_DATAGRAM_ERROR_MAX
};

A handler that matches on these reacts to a fault identically whichever backend produced it, and keeps working when the backend is swapped.

event->Source still names the backend that spoke, for diagnosis. Which of these codes a given backend can raise is a property of that backend and is stated on its own page; a code it never raises is simply one a handler never sees.


Public Functions Documentation

SolidSyslogDatagramErrors_Name

The detail's name, read beside the category's: NEXT_HOP_UNRESOLVED for SOLIDSYSLOG_DATAGRAM_ERROR_NEXT_HOP_UNRESOLVED.

const char * SolidSyslogDatagramErrors_Name (
    int32_t detail
) 

NULL for a code outside the enum.



The documentation for this class was generated from the following file Core/Interface/SolidSyslogDatagramErrors.h