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

libtmux::test::SocketNamespace

C++
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++
  • Swift Unavailable

View as Markdown

Module
libtmux::test
Package
libtmux-cxx
Source
include/libtmux/testing/scoped_server.hpp
struct libtmux::test::SocketNamespace
struct [source]
struct [source]
struct libtmux::test::SocketNamespace

Names the private tree, the socket and the tmux -L name, so concurrent suites cannot collide and a leftover directory identifies its owner.

label reaches the socket path, which must fit in sockaddr_un::sun_path — 108 bytes on Linux, 104 on macOS. Keep it under about twenty characters: macOS spends roughly sixty of those on $TMPDIR alone, once /var/folders/... has canonicalised to /private/var/..., and tmux spends more again on the directory it puts the socket in. A label that overruns is reported by tmux as "File name too long", naming the path.

start refuses one containing anything outside [A-Za-z0-9._-].

3 declared, 0 inherited

Members

  • consumer method Prefixed, so a consumer's servers are distinguishable from this library's.
  • internal method
  • label attribute
Esc

Type to search.