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

◆ send()

template<typename Transport>
bool MayaFlux::Core::StreamBackend< Transport >::send ( uint64_t endpoint_id,
const uint8_t * data,
size_t size )
overridevirtual

Send data through an endpoint.

Parameters
endpoint_idTarget endpoint.
dataPointer to payload bytes.
sizePayload size in bytes.
Returns
true if the send was accepted (queued or completed).

For UDP: sends a single datagram via sendto(). Non-blocking. For TCP: writes framed message. May block briefly if kernel send buffer is full. For SHM: writes into the shared segment.

Implements MayaFlux::Core::INetworkBackend.