Skip to content

File SolidSyslogSender.h

FileList > Core > Interface > SolidSyslogSender.h

  • #include "SolidSyslogExternC.h"
  • #include <stdbool.h>
  • #include <stddef.h>

Detailed Description

The sender role: deliver a framed message (Send) / drop the connection (Disconnect).

These calls dispatch to the injected sender's vtable, so behaviour - transport, framing, connect-on-first-use - is that sender's.

Public Functions Documentation

SolidSyslogSender_Disconnect

Drop the connection; the next Send reconnects.

void SolidSyslogSender_Disconnect (
    struct SolidSyslogSender * sender
) 

Idempotent.


SolidSyslogSender_Send

Deliver one framed message.

bool SolidSyslogSender_Send (
    struct SolidSyslogSender * sender,
    const void * buffer,
    size_t size
) 

Returns true when it is on the wire (the caller may then drop it), false when it should be retried later. May connect on first use, which can block on the transport. buffer is read only during the call.



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