![]() |
dfx 0.1.0
Linux-based dynamic dataflow executor
|
TCP server configuration. More...
#include <dfx-server/TcpServer.hpp>
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. | |
TCP server configuration.
| uint32_t dfx::Server::TcpServer::Options::backlog = 5 |
Listen backlog passed to listen(2).
| std::string dfx::Server::TcpServer::Options::host |
Host/interface to bind to (e.g. "127.0.0.1", "0.0.0.0", "::1", ...).
| std::chrono::milliseconds dfx::Server::TcpServer::Options::inactivityTimeout {5000} |
Per-session inactivity timeout. Sessions that remain inactive beyond this timeout are eligible for termination.
| 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")
| 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.