# libtmux::Server::available

- **Module:** libtmux
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/75ff8098f8b2a6d7690962ba82087b19d086b5b8/include/libtmux/server.hpp#L319
- **Page:** https://libtmux.org/en/cxx/latest/reference/libtmux-server-available/

```
[[nodiscard]] expected<bool, CommandFailure>
available(ServerFeature feature) const;
```

Whether the tmux this handle reaches provides `feature`: what `capabilities().supports(feature)` says, and for a feature that needs a tmux release, that release too.

`ServerFeature::control_mode` needs one. This answers `false` exactly where `control()`, `control_with_options()`, `over_control()` and `Connection::connect` refuse the daemon for its release, because the answer and the refusal read one release table. `true` means the release does not stand in the way, not that a daemon is listening.

The release is read as `tmux_version()` reads it: the daemon's when one answers, otherwise the executable's, and `ExecutorOptions::version` when the transport declares one. That can run tmux, so the call can fail, with the failure `tmux_version()` reports. A backend that settles the answer alone runs nothing: `false` for psmux and for an implementation nobody recognises, `true` for a feature with no release floor.

## Parameters

- `feature` (`ServerFeature`)
