24 #include <string_view>
50 explicit Udp(std::shared_ptr<interface::Channel> channel);
62 std::future<
bool> start() override;
64 void send(std::string_view data) override;
65 void send_line(std::string_view line) override;
66 bool is_connected() const override;
75 void set_manage_external_context(
bool manage);
79 const
Impl* get_impl()
const {
return impl_.get(); }
80 Impl* get_impl() {
return impl_.get(); }
81 std::unique_ptr<Impl> impl_;
Common interface for 1:1 point-to-point communication (e.g., TcpClient, Serial, Udp)
std::function< void(const ErrorContext &)> ErrorHandler
std::function< void(const MessageContext &)> MessageHandler
std::function< void(const ConnectionContext &)> ConnectionHandler