MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ send_to()

template<typename Transport>
bool MayaFlux::Core::StreamBackend< Transport >::send_to ( uint64_t endpoint_id,
const uint8_t * data,
size_t size,
const std::string & address,
uint16_t port )
overridevirtual

Send data to a specific address through an endpoint.

Parameters
endpoint_idSource endpoint (must be open).
dataPointer to payload bytes.
sizePayload size in bytes.
addressTarget address string.
portTarget port.
Returns
true if the send was accepted.

Primary use: UDP (send to arbitrary peer via bound socket). TCP: ignored, uses connected peer. SHM: ignored.

Implements MayaFlux::Core::INetworkBackend.