Skip to content

File SolidSyslogUdpSenderErrors.h

FileList > Core > Interface > SolidSyslogUdpSenderErrors.h

Error codes and Source identity for the UdpSender.

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

Public Types Documentation

SolidSyslogUdpSenderErrors

Detail codes for events whose Source is SolidSyslogUdpSenderErrorSource.

enum SolidSyslogUdpSenderErrors {
    SOLIDSYSLOG_UDP_SENDER_ERROR_NULL_CONFIG,
    SOLIDSYSLOG_UDP_SENDER_ERROR_NULL_RESOLVER,
    SOLIDSYSLOG_UDP_SENDER_ERROR_NULL_DATAGRAM,
    SOLIDSYSLOG_UDP_SENDER_ERROR_NULL_ADDRESS,
    SOLIDSYSLOG_UDP_SENDER_ERROR_NULL_ENDPOINT,
    SOLIDSYSLOG_UDP_SENDER_ERROR_SEND_NULL_BUFFER,
    SOLIDSYSLOG_UDP_SENDER_ERROR_POOL_EXHAUSTED,
    SOLIDSYSLOG_UDP_SENDER_ERROR_UNKNOWN_DESTROY,
    SOLIDSYSLOG_UDP_SENDER_ERROR_DELIVERY_FAILED,
    SOLIDSYSLOG_UDP_SENDER_ERROR_DELIVERY_RESTORED,
    SOLIDSYSLOG_UDP_SENDER_ERROR_RECORD_TOO_LARGE,
    SOLIDSYSLOG_UDP_SENDER_ERROR_MAX
};

A handler reads these off event->Detail after matching event->Source; the members name their own fault.


Public Attributes Documentation

SolidSyslogUdpSenderErrorSource

The identity for events raised by a UdpSender.

const struct SolidSyslogErrorSource SolidSyslogUdpSenderErrorSource;

A handler matches by address (event->Source == &SolidSyslogUdpSenderErrorSource), then reads event->Detail as an enum SolidSyslogUdpSenderErrors.


Public Functions Documentation

SolidSyslogUdpSenderErrors_Name

The detail's name, read beside the category's: NULL_CONFIG for SOLIDSYSLOG_UDP_SENDER_ERROR_NULL_CONFIG.

const char * SolidSyslogUdpSenderErrors_Name (
    int32_t detail
) 

NULL for a code outside the enum.



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