5#include <asio/local/stream_protocol.hpp>
28 std::filesystem::path
path;
34 static constexpr std::string_view
label =
"UDS";
35 static constexpr std::string_view
name =
"UDS (Asio)";
38 static std::expected<Bound, std::string>
bind(Protocol::acceptor& acceptor,
const EndpointInfo& info);
69#ifdef MAYAFLUX_EXPORTS
Connection-oriented reliable message transport over an Asio stream protocol.
NetworkTransport
Identifies the transport protocol a backend implements.
StreamBackend< UdsTransport > UDSBackend
FramingPolicy
How messages are delimited on the wire.
Describes one logical send/receive endpoint managed by a backend.
Configuration for the Unix domain socket transport backend.
std::filesystem::path path
static constexpr FramingPolicy automatic_framing
static std::string describe(const EndpointInfo &info)
static constexpr bool listens
static std::expected< Bound, std::string > bind(Protocol::acceptor &acceptor, const EndpointInfo &info)
static std::expected< Protocol::endpoint, std::string > connect_target(const EndpointInfo &info)
static bool is_listener(const EndpointInfo &info)
asio::local::stream_protocol Protocol
static void release(const Bound &bound)
static void describe_accepted(const Protocol::socket &socket, const EndpointInfo &listener, EndpointInfo &accepted)
static constexpr std::string_view name
static constexpr std::string_view label
static std::string peer_label(const EndpointInfo &info)
StreamBackend policy for Unix domain sockets.