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

◆ on_network_message_from() [1/2]

MAYAFLUX_API std::shared_ptr< Vruta::NetworkSource > MayaFlux::on_network_message_from ( const Core::EndpointInfo info,
std::string  sender_address,
std::function< void(const Core::NetworkMessage &)>  callback,
std::string  name = "" 
)

Schedule an on_message_from handler, constructing the NetworkSource from config.

Parameters
infoEndpoint configuration used to open the source
sender_addressSender IP address to filter on
callbackInvoked with each matching message
nameOptional name for the event handler
Returns
Shared pointer to the opened NetworkSource

Definition at line 329 of file Chronie.cpp.

334{
335 auto source = std::make_shared<Vruta::NetworkSource>(info);
336 on_network_message_from(source, std::move(sender_address), std::move(callback), std::move(name));
337 return source;
338}
void on_network_message_from(std::shared_ptr< Vruta::NetworkSource > source, std::string sender_address, std::function< void(const Core::NetworkMessage &)> callback, std::string name)
Schedule an on_message_from handler with an existing NetworkSource.
Definition Chronie.cpp:313

References on_network_message_from().

+ Here is the call graph for this function: