Core LibraryAPI Reference

Choose documentation 3

latest

Current version

latest
English

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

method libtmux-java latest

Server.control

Package io.github.libtmux.Server.control io.github.libtmux

Attaches a control client to this session's server, and only to the process this capture named.

View as Markdown

Source and package
Module
io.github.libtmux
Declared in
Server
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/Server.java
control ( session : Session ) → ControlClient ( session : Session , timeout : Duration ) → ControlClient
methodoverload2 overloads [source]

Description#

The client is started by this server's transport. A transport that cannot start processes fails here rather than attaching on the local machine. The process id is checked before the client starts and again on the client itself; a server that has taken over the socket is detached before this client changes it.

Parameters
  • session ( Session ) – a session captured from this server (for control(session))

  • timeout ( Duration ) – how long to wait for the client to become ready (for control(session, timeout))

Raises

Discussed in Compatibility

Esc

Type to search.