tcpConfig.h

// SPDX-License-Identifier: MIT

int elosTcpConfigGetConnectionLimit(elosPlugin_t const *plugin)
[source]

Get the connection limit for this plugin instance.

Parameters:
  • plugin – plugin instance

Returns:

  • in any case a number of max parallel client connections

  • compile definition ELOSD_CONNECTION_LIMIT (200) on failure

const char *elosTcpConfigGetInterface(elosPlugin_t const *plugin)
[source]

Get the interface to be used for this plugin instance. The string could either contain an IP address (V4/V6) or a host name.

Parameters:
  • plugin – plugin instance

Returns:

  • in any case an IP address or a host name.

  • compile definition ELOSD_INTERFACE (200) on failure

int elosTcpConfigGetPort(elosPlugin_t const *plugin)
[source]

Get the configured TCP port for this plugin instance.

Parameters:
  • plugin – plugin instance

Returns:

  • in any case the port to use

  • on any failure the compile definition of ELOSD_PORT is used