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:: Socket Namespace - Namespace
- libtmux::test
- Package
- libtmux-cxx
- Source
- include/libtmux/testing/scoped_server.hpp
-
Description#
labelreaches the socket path, which must fit insockaddr_un::sun_path— 108 bytes on Linux, 104 on macOS. Keep it under about twenty characters: macOS spends roughly sixty of those onTMPDIRalone, 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.startrefuses one containing anything outside[A-Za-z0-9._-].
Members3#
- consumer method Prefixed, so a consumer's servers are distinguishable from this library's.
- internal method
- label: std::
string attribute