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

◆ send()

virtual bool MayaFlux::Core::INetworkBackend::send ( uint64_t  endpoint_id,
const uint8_t *  data,
size_t  size 
)
pure virtual

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.

Implemented in MayaFlux::Core::TCPBackend, and MayaFlux::Core::UDPBackend.