libtmux::test::SocketNamespace
C++
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++
- Swift Unavailable
- Module
- libtmux::test
- Package
- libtmux-cxx
- Source
- include/libtmux/testing/scoped_server.hpp
-
Names the private tree, the socket and the
tmux -Lname, so concurrent suites cannot collide and a leftover directory identifies its owner.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 on$TMPDIRalone, 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._-].
3 declared, 0 inherited