Endpoint
Where a tmux server listens.
Source and package
- Qualified name
-
Endpoint - Package
- libtmux-swift
- Source
- Sources/LibTmux/Endpoint.swift
-
Description#
tmux resolves a name against
TMUX_TMPDIRat exec time, so the same name can denote different servers in different environments. A path denotes one socket. The two are mutually exclusive, and a value of either kind is always addressable — the length check that a path must pass happens here rather than at bind time, where it would surface as an opaque failure.A third kind names no socket at all. tmux then chooses the server itself, as it does for a command typed in a shell: the one in
TMUXwhen the process runs inside tmux, and the default socket inTMUX_TMPDIRotherwise.
Members6#
Common operations1#
- socketName(_:): case socketName(String) constant
Other members5#
- init(socketName:) method
- init(socketPath:) method
- portableSocketPathByteLimit: static let portable
Socket : Int property The longest socket path this library will accept, in bytes.Path Byte Limit - socketPath(_:): case socketPath(String) constant
- tmuxChoice: case tmux
Choice constant No socket: tmux is passed neither-Lnor-Sand picks the server.
Inherited members2 members#
Reached through Equatable.!=(_:_:), Decodable.init(from:).
- !=(_:_:) function inherited Returns a Boolean value indicating whether two values are not equal.
- init(from:) method inherited Creates a new instance by decoding from the given decoder.