# Libtmux.Endpoint

- **Package:** libtmux
- **Language:** OCaml
- **Kind:** module
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L30
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-endpoint/

```ocaml
module Endpoint
```

An explicit socket description. Constructing an endpoint neither reads the environment nor starts a daemon. [`Source.t`](/en/ocaml/latest/reference/libtmux-source-t/) adds the observed daemon and connection generation.

## Members

### Common operations

- [`named_socket`](/en/ocaml/latest/reference/libtmux-endpoint-named_socket/) (function): `named_socket name` describes tmux's `-L name` endpoint. Raises `Invalid_argument` if `name` is empty or contains NUL or `/`.
- [`socket_path`](/en/ocaml/latest/reference/libtmux-endpoint-socket_path/) (function): `socket_path path` describes an absolute `-S path` endpoint. It does not check existence or resolve symbolic links. Raises `Invalid_argument` if `path` is relative, empty or contains NUL.

### Other members

- [`equal`](/en/ocaml/latest/reference/libtmux-endpoint-equal/) (function): Equality compares descriptions, not server instances or resolved paths.
- [`kind`](/en/ocaml/latest/reference/libtmux-endpoint-kind/) (function)
- [`kind`](/en/ocaml/latest/reference/libtmux-endpoint-kind-type/) (enum)
- [`pp`](/en/ocaml/latest/reference/libtmux-endpoint-pp/) (function)
- [`t`](/en/ocaml/latest/reference/libtmux-endpoint-t/) (typealias): An explicit socket description, independent of the environment.
