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

◆ send_to()

bool MayaFlux::Core::TCPBackend::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.

Definition at line 319 of file TCPBackend.cpp.

321{
322 return send(endpoint_id, data, size);
323}
Range size
bool send(uint64_t endpoint_id, const uint8_t *data, size_t size) override
Send data through an endpoint.

References size.