OpenDOF Project
void(* DOFRuntimeConnectionStateListener::DOFRuntimeConnectionStateListenerFns_t::StateChanged)(DOFRuntimeConnectionStateListener self, DOFRuntime runtime, DOFConnection connection, DOFConnectionState state)

Called whenever the DOFConnectionState_IsConnected value changes for any of the DOF's connections.

This function is called immediately for all connections when the listener is added, and then will be called whenever a connection's connected state changes. For each connection, the library guarantees that calls to this function will occur in the same order as the associated state change, so that, for example, if a connection rapidly connects and then disconnects, you won't mistakenly receive the disconnect notification before the connect notification.

This callback must not be NULL.

Parameters
selfThe listener object. This will never be NULL.
runtimeThe DOFRuntime on which the listener was added. This will never be NULL.
connectionThe DOFConnection that changed state. This will never be NULL.
stateThe updated state of the connection. This will never be NULL.
core-c-dof-oal Version 7.1.7 Build 0
2017-10-31