# libtmux::Server::is_alive

- **Module:** libtmux::Server
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/85e8bd603a322dc32bb8b9aeb1a72bcf36945f1d/include/libtmux/server.hpp#L152
- **Page:** https://libtmux.org/reference/cxx/libtmux-server-is_alive/

```
libtmux::Server::is_alive(timeout: std::chrono::milliseconds = std::chrono::seconds{ 5}) -> bool
```

Whether a server is answering on this socket.

False covers every reason — no server, no socket, a tmux that would not run — because a caller who only wants to know whether to start one does not need to tell them apart.

Bounded by default: the one call whose whole job is answering "can I reach
this" must not be the call that hangs. A stalled socket or a stopped server answers no, in time, rather than never.
