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

◆ transition_state()

void MayaFlux::Core::UDPBackend::transition_state ( EndpointRecord record,
EndpointState  new_state 
)
private

Definition at line 419 of file UDPBackend.cpp.

420{
421 EndpointState prev = record.info.state;
422 record.info.state = new_state;
423
424 if (m_state_callback && prev != new_state) {
425 m_state_callback(record.info, prev, new_state);
426 }
427}
EndpointStateCallback m_state_callback
EndpointState
Observable connection state for an endpoint.

References MayaFlux::Core::UDPBackend::EndpointRecord::info, m_state_callback, and MayaFlux::Core::EndpointInfo::state.

Referenced by open_endpoint().

+ Here is the caller graph for this function: