OpenDOF Project
void(* DOFServerStateListener::DOFServerStateListenerFns_t::StateChanged)(DOFServerStateListener self, DOFServer server, DOFServerState state)

Callback for when the state of a Server changes (for example, when the Server is started or when it is stopped or fails).

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

All calls to server 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.
serverThe server for which the state is being reported. This will never be NULL.
stateThe current state of the Server. This will never be NULL.
core-c-dof-oal Version 7.1.7 Build 0
2017-10-31