OpenDOF Project
void(* DOFConnectionStateListener::DOFConnectionStateListenerFns_t::StateChanged)(DOFConnectionStateListener self, DOFConnection connection, DOFConnectionState state)

Callback for when the state of a Connection changes (for example, when the Connection is established or when it is closed or fails).

This callback will be called immediately when the listener is added to the connection with the current state of the connection (whether connected or disconnected) and then will be called whenever the state changes.

All calls to connection state listeners are synchronized in a single thread, so application locking is not required if all access to required data structures is contained solely inside the listener.

This callback must not be NULL.

Parameters
selfThe listener object. This will never be NULL.
connectionThe connection for which the state is being reported. This will never be NULL.
stateThe current state of the Connection. This will never be NULL.
core-c-dof-oal Version 7.1.7 Build 0
2017-10-31