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

◆ set_state_callback()

virtual void MayaFlux::Core::INetworkBackend::set_state_callback ( EndpointStateCallback  callback)
pure virtual

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.

Implemented in MayaFlux::Core::TCPBackend, and MayaFlux::Core::UDPBackend.