Server.control
Attaches a control client to this session's server, and only to the process this capture named.
Source and package
- Qualified name
-
io.github .libtmux .Server. control - Package
- io.github.libtmux
- Declared in
Server- Distribution
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Server.java
- @Operation(Kind
.LIFECYCLE ) public ControlClient control(Session session)@Operation(Kind.LIFECYCLE ) public ControlClient control( Session session, Duration timeout) -
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
- Errors
-
-
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)
-
Recorded calls
source callsThe Java reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls io.github.libtmux.Server.control.