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

◆ on_network_message_matching() [1/2]

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

Schedule an on_message_matching handler, constructing the NetworkSource from config.

Parameters
infoEndpoint configuration used to open the source
predicateFilter; only matching messages invoke callback
callbackInvoked with each matching message
nameOptional name for the event handler
Returns
Shared pointer to the opened NetworkSource

Definition at line 356 of file Chronie.cpp.

361{
362 auto source = std::make_shared<Vruta::NetworkSource>(info);
363 on_network_message_matching(source, std::move(predicate), std::move(callback), std::move(name));
364 return source;
365}
void on_network_message_matching(std::shared_ptr< Vruta::NetworkSource > source, std::function< bool(const Core::NetworkMessage &)> predicate, std::function< void(const Core::NetworkMessage &)> callback, std::string name)
Schedule an on_message_matching handler with an existing NetworkSource.
Definition Chronie.cpp:340

References on_network_message_matching().

+ Here is the call graph for this function: