72 [[nodiscard]]
bool send(
ByteView data) const;
84 [[nodiscard]]
bool send_to(
ByteView data, const
std::
string& address, uint16_t port) const;
89 [[nodiscard]]
bool is_open()
const {
return m_endpoint_id != 0; }
94 [[nodiscard]]
const std::string&
name()
const {
return m_name; }
98 uint64_t m_endpoint_id { 0 };
NetworkSink(const NetworkSink &)=delete
const std::string & name() const
Return the stream name from the config.
NetworkSink & operator=(const NetworkSink &)=delete
Owned handle for sending data through a network stream.
std::span< const uint8_t > ByteView
Convenience alias for a read-only byte view.
Full configuration for an outbound or bidirectional stream.
Backend network transport service interface.