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

◆ ~NetworkSource()

MayaFlux::Vruta::NetworkSource::~NetworkSource ( )

Close the endpoint and release all resources.

Definition at line 42 of file NetworkSource.cpp.

43{
44 if (m_endpoint_id == 0) {
45 return;
46 }
47
49 .get_service<Registry::Service::NetworkService>();
50
51 if (svc) {
52 svc->set_endpoint_receive_callback(m_endpoint_id, nullptr);
53 svc->close_endpoint(m_endpoint_id);
54 }
55}
Interface * get_service()
Query for a backend service.
static BackendRegistry & instance()
Get the global registry instance.

References MayaFlux::Registry::BackendRegistry::get_service(), MayaFlux::Registry::BackendRegistry::instance(), m_endpoint_id, and MayaFlux::Registry::Service::NetworkService::set_endpoint_receive_callback.

+ Here is the call graph for this function: