![]() |
OpenSplice C# API
v6.x
OpenSplice C# Data Distribution Service Data-Centric Publish-Subscribe API
|
Listeners provide a mechanism for the middleware to asynchronously alert the application of the occurrence of relevant status changes.
All Entities support a listener, which type of which is specialised to the specific type of the related Entity (e.g., DataReaderListener for the DataReader). Listeners are interfaces that the application must implement. Each dedicated listener presents a list of operations that correspond to the relevant communication status changes (i.e., that the application may react to).
By default, status callbacks are handled by the most dedicated Listener (i.e. the Listener closest to the source of the status change).
A Listener-callback resets its status, as it implicitly accesses the status when it is passed as a parameter to the corresponding callback operation: