OpenDOF Project
Data Fields
DOFRuntimeConnectionStateListener Struct Reference

The DOFRuntimeConnectionStateListener interface structure, when implemented, enables you to receive notifications when any of this DOF's connections, either inbound or outbound, are established or go down. More...

Data Fields

void(* Removed )(DOFRuntimeConnectionStateListener self, DOFRuntime runtime, DOFException except)
 Called when this listener is removed from the DOFRuntime, either through use of DOFRuntime_RemoveConnectionListener or because an exception caused the listener to be removed.
 
void(* StateChanged )(DOFRuntimeConnectionStateListener self, DOFRuntime runtime, DOFConnection connection, DOFConnectionState state)
 Called whenever the DOFConnectionState_IsConnected value changes for any of the DOF's connections.
 

Detailed Description

The DOFRuntimeConnectionStateListener interface structure, when implemented, enables you to receive notifications when any of this DOF's connections, either inbound or outbound, are established or go down.

The Runtime Connection State Listener interface.

All of the functions in this structure take a pointer to this structure (a DOFRuntimeConnectionStateListener) 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.

Threading:
Functions in this interface may be called by multiple threads simultaneously. You must manage thread-safety.
See Also
DOFRuntime_AddConnectionListener
DOFConnectionStateListener

Defined as a pointer to the DOFRuntimeConnectionStateListener_t structure. Refer to the structure for more information.

core-c-dof-oal Version 8.0.0 Build 0
2017-04-21