Skip to content

File SolidSyslogEndpoint.h

FileList > Core > Interface > SolidSyslogEndpoint.h

The destination a sender is directed at (host sink + port) and the callbacks a sender uses to pull it and to detect when it changes.

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

Classes

Type Name
struct SolidSyslogEndpoint
The destination a sender is directed at.

Public Types Documentation

enum @2

enum @2 {
    SOLIDSYSLOG_MAX_HOST_SIZE = 256
};

SolidSyslogEndpointFunction

Called by the sender to pull the current destination into endpoint .

typedef void(* SolidSyslogEndpointFunction) (struct SolidSyslogEndpoint *endpoint, void *context);

context is EndpointContext, passed through unchanged.


SolidSyslogEndpointVersionFunction

Returns a monotonic version the user bumps on any change to host or port.

typedef uint32_t(* SolidSyslogEndpointVersionFunction) (void *context);

The sender polls this every Send and re-pulls the endpoint only when the version differs from the last it acted on, so it must be cheap and pure. context is EndpointContext, passed through unchanged.



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