On this page
libtmux::Server::at_socket_path
- Module
- libtmux
- Declared in
- Server
- Package
- libtmux-cxx
- Source
- include/libtmux/server.hpp
- at_socket_path ( path : std::string_view , observer : CommandObserver = {} , policy : ExecutionPolicy = {} ) expected< Server, CommandFailure >
-
-S path: the socket file, used verbatim.These report
CommandFailure, the same type every other call reports, rather than theSocketErrorthe argument builders use: a factory that failed differently is a factory nothing can be chained onto. The reason a selector was rejected is in the diagnostic, andsocket_path_argumentsstill returns the enum for a caller that wants to branch on it.An observer, if given, is told about every command this server runs. It is fixed at construction because the connection is immutable afterwards, and that is what makes a Server safe to copy between threads. The policy is fixed for the same reason, and says what a call gets when it names no timeout or limit of its own.
Discussed in Socket and servers
0 declared, 0 inherited