tlsrpt_open(3)

tlsrpt_open3

`tlsrpt_open` allocates and initializes the `struct tlsrpt_connection_t` object

Usage

#include <tlsrpt.h>

int tlsrpt_open(struct tlsrpt_connection_t** pcon, const char* socketname)

Overview

The function tlsrpt_open allocates and initializes the struct tlsrpt_connection_t object. This function creates the socket and initializes the destination socket address of the TLSRPT collectd. There is no actual connection internally, the socket is a connection-less datagram socket.

Return value

The tlsrpt_open function returns 0 on success and a combined error code on failure. The combined error code can be analyzed with the tlsrpt_strerror function.

Releases

2 releases since Debian 13 (Trixie); the text changed 1 time.

  1. 13
  2. Arch

Author

Boris Lohner

From libtlsrpt 0.5.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.