Server.control
Attaches a control client to this session's server, and only to the process this capture named.
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 ) Control
Client ( session : Session , timeout : Duration ) ControlClient -
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
- Raises
-
-
Target
Gone – if that process is no longer the one on this socket (forException control(session)) -
Illegal
Argument – if the session belongs to another server (forException control(session)) -
Illegal
State – if this server is closed, or its transport starts no control client (forException control(session))
-
Discussed in Compatibility