Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

libtmux::Server::is_alive

View as Markdown

Module
libtmux
Declared in
Server
Package
libtmux-cxx
Source
include/libtmux/server.hpp
Other languages
Python Ruby Lua TypeScriptRustGoJava.NETSwift
is_alive ( timeout : std::chrono::milliseconds = std::chrono::seconds{ 5} ) → bool
methodreadonly [source]
methodreadonly [source]
is_alive

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 ports Whether the server is running

0 declared, 0 inherited

Esc

Type to search.