Core Library0.xAPI 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.

property libtmux-swift latest

Endpoint.portableSocketPathByteLimit

The longest socket path this library will accept, in bytes.

Source and package
Qualified name
Endpoint.portableSocketPathByteLimit
Declared in
Endpoint
Package
libtmux-swift
Source
Sources/LibTmux/Endpoint.swift
portableSocketPathByteLimit : static let portableSocketPathByteLimit: Int

Description#

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.

Esc

Type to search.

Reference previewOpen reference