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.

class libtmux-java latest

ServerIdentity

Which tmux server a handle belongs to.

Source and package
Qualified name
io.github.libtmux.ServerIdentity
Package
io.github.libtmux
Distribution
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/ServerIdentity.java
class io.github.libtmux.ServerIdentity

Description#

Two entities with the same id are the same entity only if they came from the same server. The realm exists because socket text alone is not enough: two unrelated execution realms — a local process and a container, say — can both hold a server at /tmp/s, and entities from them must not compare equal.

The server is identified by a digest of its endpoint rather than by the endpoint itself, so an identity can be logged, compared and embedded in a message without carrying a socket path.

Members8#

  • at method This server as one process: a pid alone can be reused, so its start time is part of it.
  • equals method
  • hashCode method
  • of method
  • processId method The live tmux process, present on an identity bound to a captured handle.
  • realm method The execution realm the transport reaches tmux through.
  • server method A stable opaque key for the server, carrying no socket path.
  • toString method
Esc

Type to search.

Reference previewOpen reference