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

◆ set_state_callback()

template<typename Transport>
void MayaFlux::Core::StreamBackend< Transport >::set_state_callback ( EndpointStateCallback callback)
overridevirtual

Register the endpoint state change callback.

Fired when an endpoint transitions state (OPENING -> OPEN, OPEN -> ERROR, ERROR -> RECONNECTING, etc.). The subsystem uses this to resume co_open_endpoint awaitables and to notify consumers.

An accepted connection is announced as CLOSED -> OPEN with EndpointInfo::parent_id set to the listener that accepted it, before its first receive callback.

Implements MayaFlux::Core::INetworkBackend.