Skip to content
Download

host

mach::App::host

Returns the host configured for the application.

Returns the host configured for the application.

The returned value corresponds to the host that will be used when the application starts listening for incoming connections.

[[nodiscard]] std::string host() const noexcept;

The configured host.

This function is noexcept and does not throw exceptions.

This function is thread-safe.

std::string host = app.host();
Name Description
port Returns the configured port.
threadCount Returns the configured worker thread count.