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

◆ get_endpoint_state()

EndpointState MayaFlux::Core::UDPBackend::get_endpoint_state ( uint64_t  endpoint_id) const
overridevirtual

Query the current state of an endpoint.

Implements MayaFlux::Core::INetworkBackend.

Definition at line 161 of file UDPBackend.cpp.

162{
163 std::shared_lock lock(m_endpoints_mutex);
164 auto it = m_endpoints.find(endpoint_id);
165 if (it == m_endpoints.end()) {
167 }
168 return it->second.info.state;
169}
std::unordered_map< uint64_t, EndpointRecord > m_endpoints
std::shared_mutex m_endpoints_mutex

References MayaFlux::Core::CLOSED, m_endpoints, and m_endpoints_mutex.