Skip to content

File SolidSyslogTcpStreamErrors.h

FileList > Core > Interface > SolidSyslogTcpStreamErrors.h

Portable detail codes for the TCP-stream role, shared by every TCP backend.

  • #include "SolidSyslogExternC.h"

Public Types Documentation

SolidSyslogTcpStreamErrors

Detail codes a TCP stream reports through event->Detail, shared by every TCP backend whichever stack provides it.

enum SolidSyslogTcpStreamErrors {
    SOLIDSYSLOG_TCP_STREAM_ERROR_POOL_EXHAUSTED,
    SOLIDSYSLOG_TCP_STREAM_ERROR_UNKNOWN_DESTROY,
    SOLIDSYSLOG_TCP_STREAM_ERROR_NULL_CONFIG,
    SOLIDSYSLOG_TCP_STREAM_ERROR_NULL_SLEEP,
    SOLIDSYSLOG_TCP_STREAM_ERROR_ENDPOINT_UNAVAILABLE,
    SOLIDSYSLOG_TCP_STREAM_ERROR_CONNECT_NOT_STARTED,
    SOLIDSYSLOG_TCP_STREAM_ERROR_CONNECT_REFUSED,
    SOLIDSYSLOG_TCP_STREAM_ERROR_CONNECT_TIMED_OUT,
    SOLIDSYSLOG_TCP_STREAM_ERROR_SOCKET_OPTION_REFUSED,
    SOLIDSYSLOG_TCP_STREAM_ERROR_MAX
};

A handler that matches on these reacts to a fault identically whichever stack 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; a code it never raises is simply one a handler never sees.



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