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

◆ NetworkReceiveCallback

using MayaFlux::Core::NetworkReceiveCallback = typedef std::function<void( uint64_t endpoint_id, const uint8_t* data, size_t size, std::string_view sender_addr)>

Callback signature for inbound data on an endpoint.

Parameters
endpoint_idThe endpoint that received the data.
dataPointer to received bytes. Valid only for the duration of the callback.
sizeNumber of bytes received.
sender_addrSender address string (IP:port for UDP, peer address for TCP, segment name for SHM).

Definition at line 17 of file NetworkBackend.hpp.