5#include <asio/serial_port.hpp>
33 static constexpr std::string_view
label =
"Serial";
34 static constexpr std::string_view
name =
"Serial (Asio)";
64#ifdef MAYAFLUX_EXPORTS
Connection-oriented reliable message transport over an Asio stream protocol.
NetworkTransport
Identifies the transport protocol a backend implements.
StreamBackend< SerialTransport > SerialBackend
FramingPolicy
How messages are delimited on the wire.
Describes one logical send/receive endpoint managed by a backend.
Configuration for the serial port transport backend.
static constexpr bool listens
static constexpr FramingPolicy automatic_framing
static constexpr std::string_view label
static std::string peer_label(const EndpointInfo &info)
static std::chrono::milliseconds settle_time(const EndpointInfo &info)
static constexpr std::string_view name
static asio::error_code open(Stream &port, const EndpointInfo &info)
static void ready(Stream &port, const EndpointInfo &info)
static bool set_control_lines(Stream &port, std::optional< bool > dtr, std::optional< bool > rts)
static bool send_break(Stream &port)
static std::string describe(const EndpointInfo &info)
StreamBackend policy for serial ports.