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

◆ send_to()

virtual bool MayaFlux::Core::INetworkBackend::send_to ( uint64_t  endpoint_id,
const uint8_t *  data,
size_t  size,
const std::string &  address,
uint16_t  port 
)
pure virtual

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.

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