OpenDOF Project
boolean DOFConnection_AddStateListener ( DOFConnection  self,
DOFConnectionStateListener  listener 
)

Add a connection state listener to this DOFConnection.

It will be called immediately with the current state of the connection.

A listener must be unique among this connection's set of state listeners to be added successfully.

Parameters
selfThe DOFConnection. This must not be NULL.
listenerThe listener to be called whenever the connection state changes. This must not be NULL.
Return values
TRUEif listener was successfully added to the connection.
Exceptions
FALSEif the listener could not be added to the connection, either because of an illegal argument or because the listener is already added to the connection.
See Also
DOFConnection_RemoveStateListener
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22