Struct Tryll::Client::ManagedServerOptions¶
ClassList > Tryll > Client > ManagedServerOptions
Configuration passed to ManagedServer::Start .
#include <ManagedServer.h>
Public Attributes¶
| Type | Name |
|---|---|
| std::filesystem::path | exe |
| std::vector< std::string > | extraArgs Extra command-line arguments appended after -- port < port > . |
| std::string | host = "127.0.0.1" |
| std::uint16_t | port = 9100 |
| std::chrono::milliseconds | startTimeout = std::chrono::seconds{30}How long to wait for the TCP port to become reachable after spawn. |
| std::filesystem::path | stderrLog |
| std::filesystem::path | stdoutLog |
| std::chrono::milliseconds | stopTimeout = std::chrono::seconds{8} |
| std::filesystem::path | workingDirectory |
Public Attributes Documentation¶
variable exe¶
Path to the tryll_server executable. Required — no automatic discovery is performed.
variable extraArgs¶
Extra command-line arguments appended after -- port < port > .
variable host¶
Host name / IP for the TCP ready-probe after spawn. Almost always "127.0.0.1" (the default).
variable port¶
TCP port the server will listen on. Passed as -- port < port > on the server command line so it overrides whatever is in server-config.json. Default: 9100.
variable startTimeout¶
How long to wait for the TCP port to become reachable after spawn.
variable stderrLog¶
If non-empty, the child process's stderr is redirected to this file. Empty (default) discards stderr.
variable stdoutLog¶
If non-empty, the child process's stdout is redirected to this file. Empty (default) discards stdout.
variable stopTimeout¶
How long to wait for the process to exit after ManagedServer::Stop (or the destructor) sends the termination signal.
variable workingDirectory¶
Working directory for the child process. Empty (default) means the executable's parent directory, which is where the server looks for its data/ folder by default.
The documentation for this class was generated from the following file C:/_tryll/_monorepo/server/client-cpp/include/tryll/ManagedServer.h