On this page
libtmux::Server::is_alive
- Module
- libtmux
- Declared in
- Server
- Package
- libtmux-cxx
- Source
- include/libtmux/server.hpp
- Other languages
- PythonTypeScriptRustGoJava.NETSwift
- 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.
Discussed in Socket and servers
In other languages Whether the server is running
- Python
libtmux.Server.is_alive - TypeScript
server.Server.isAlive - Rust
server.Server.is_alive - Go
tmux.Server.IsAlive - Java
io.github.libtmux.Server.Server.isAlive - .NET
LibTmux.Server.IsAliveAsync - Swift
Server.isRunning()
- Python
0 declared, 0 inherited