The listener interface structure used to monitor server state. More...
Data Fields | |
| void(* | Removed )(DOFServerStateListener self, DOFServer server, DOFException except) |
| Callback used to let listener free any allocated memory from a removed listener. | |
| void(* | 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). | |
The listener interface structure used to monitor server state.
The Server State Listener interface.
All of the functions in this structure take a pointer to this structure (a DOFServerStateListener) as their first argument. This structure may be placed as the first element in a larger structure that stores additional state, allowing the functions to access the additional state by casting the structure pointer to a pointer to the larger structure. If no additional state is required, this structure may be used directly.
Defined as a pointer to the DOFServerStateListener_t structure. Refer to the structure for more information.