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 354 of file Chronie.cpp.

359{
360 auto source = std::make_shared<Vruta::NetworkSource>(info);
361 on_network_message_from(source, std::move(sender_address), std::move(callback), std::move(name));
362 return source;
363}
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:338

References on_network_message_from().

+ Here is the call graph for this function: