port
mach::App::port
Returns the port configured for the application.
Description
Section titled “Description”Returns the port configured for the application.
The returned value corresponds to the port the application will listen on.
Syntax
Section titled “Syntax”[[nodiscard]] std::uint16_t port() const noexcept;Return Value
Section titled “Return Value”The configured port.
Exceptions
Section titled “Exceptions”This function is noexcept and does not throw exceptions.
Thread Safety
Section titled “Thread Safety”This function is thread-safe.
Example
Section titled “Example”std::uint16_t port = app.port();See Also
Section titled “See Also”| Name | Description |
|---|---|
host |
Returns the configured host. |
threadCount |
Returns the configured worker thread count. |