Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-swift latest

TmuxServers.discover(in:tmuxExecutable:)

Every server listening on a socket in directories.

Source and package
Qualified name
TmuxServers.discover(in:tmuxExecutable:)
Declared in
TmuxServers
Package
libtmux-swift
Source
Sources/LibTmux/Discovery.swift

Description#

A socket file is not a running server: tmux leaves the file behind when it exits, so each candidate is asked whether it answers. One that does not answer within two seconds is left out rather than reported as an empty server. At most eight candidates are asked at once.

  • Parameters:
  • Returns: At most 128 reachable servers and whether the scan stopped before exhausting entries or candidates.
  • Throws: TmuxError.cancelled when the calling task is cancelled.
Parameters
Raises
Esc

Type to search.

Reference previewOpen reference