Core LibraryalphaAPI 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.

struct libtmux-cxx latest

SocketNamespace

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

Source and package
Qualified name
libtmux::test::SocketNamespace
Namespace
libtmux::test
Package
libtmux-cxx
Source
include/libtmux/testing/scoped_server.hpp
struct libtmux::test::SocketNamespace

Description#

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._-].

Members3#

Esc

Type to search.

Reference previewOpen reference