# libtmux::Server::is_alive

- **Module:** libtmux::Server
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/server.hpp#L257
- **Page:** https://libtmux.org/en/cxx/latest/reference/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.
