109 [[nodiscard]]
virtual auto send(std::span<const std::byte> data) ->
VoidResult = 0;
148 [[nodiscard]] virtual auto
id() const noexcept -> std::string_view = 0;
Core interface for data transport abstraction.
i_transport & operator=(i_transport &&)=default
virtual auto remote_endpoint() const noexcept -> endpoint_info=0
Gets the remote endpoint information.
i_transport(const i_transport &)=delete
virtual auto local_endpoint() const noexcept -> endpoint_info=0
Gets the local endpoint information.
virtual auto send(std::vector< uint8_t > &&data) -> VoidResult=0
Sends data from a uint8_t vector.
i_transport(i_transport &&)=default
virtual ~i_transport()=default
Virtual destructor for proper cleanup of derived classes.
virtual auto send(std::span< const std::byte > data) -> VoidResult=0
Sends raw data to the remote endpoint.
virtual auto is_connected() const noexcept -> bool=0
Checks if the transport is currently connected.
i_transport & operator=(const i_transport &)=delete
Network-specific error and result type definitions.
Network endpoint information (host/port or URL)
Network endpoint types (host/port, URL) and common type aliases.