On this page
Endpoint.portableSocketPathByteLimit
- Declared in
- Endpoint
- Package
- libtmux-swift
- Source
- Sources/LibTmux/Endpoint.swift
- portableSocketPathByteLimit : static let portableSocketPathByteLimit: Int
-
The longest socket path this library will accept, in bytes.
A UNIX socket path lives in a fixed array in the kernel, and the two supported systems size it differently: 108 bytes on Linux, 104 on Darwin. The smaller of the two, less the terminating NUL, is what a path can be and still bind on either — so the check is the same wherever it runs, and a path that works on one machine is not rejected on the next. Exceeding it fails at bind time, far from the call that chose the path, which is why this is checked up front.
0 declared, 0 inherited