dfx 0.1.0
Linux-based dynamic dataflow executor
Loading...
Searching...
No Matches
dfx::Server::TcpServer::Options Struct Reference

TCP server configuration. More...

#include <dfx-server/TcpServer.hpp>

Collaboration diagram for dfx::Server::TcpServer::Options:
[legend]

Public Attributes

std::string host
 Host/interface to bind to (e.g. "127.0.0.1", "0.0.0.0", "::1", ...).
uint16_t port = 0
 Host/interface to bind to (e.g. "127.0.0.1", "0.0.0.0", "::1", ...). TCP port to bind to. (0 is used for "choose an ephemeral port")
uint32_t backlog = 5
 Listen backlog passed to listen(2).
std::chrono::milliseconds inactivityTimeout {5000}
 Per-session inactivity timeout. Sessions that remain inactive beyond this timeout are eligible for termination.
std::chrono::milliseconds timeoutAccuracy {50}
 Timer resolution used to check timeouts. This is not a hard realtime guarantee; it controls how often the server wakes up to run timeout maintenance. Smaller values increase responsiveness but cost more wakeups.

Detailed Description

TCP server configuration.

Member Data Documentation

◆ backlog

uint32_t dfx::Server::TcpServer::Options::backlog = 5

Listen backlog passed to listen(2).

◆ host

std::string dfx::Server::TcpServer::Options::host

Host/interface to bind to (e.g. "127.0.0.1", "0.0.0.0", "::1", ...).

◆ inactivityTimeout

std::chrono::milliseconds dfx::Server::TcpServer::Options::inactivityTimeout {5000}

Per-session inactivity timeout. Sessions that remain inactive beyond this timeout are eligible for termination.

◆ port

uint16_t dfx::Server::TcpServer::Options::port = 0

Host/interface to bind to (e.g. "127.0.0.1", "0.0.0.0", "::1", ...). TCP port to bind to. (0 is used for "choose an ephemeral port")

◆ timeoutAccuracy

std::chrono::milliseconds dfx::Server::TcpServer::Options::timeoutAccuracy {50}

Timer resolution used to check timeouts. This is not a hard realtime guarantee; it controls how often the server wakes up to run timeout maintenance. Smaller values increase responsiveness but cost more wakeups.


The documentation for this struct was generated from the following file: