DOFConnectionStateListenerstateChanged Method OpenDOF Object Access Library
This method will be called immediately when the listener is added to the connection with the current state of the connection (either "connected" or "!connected") and then will be called whenever the state changes.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
void stateChanged(
	DOFConnection connection,
	DOFConnectionState state
)

Parameters

connection
Type: org.opendof.core.oalDOFConnection
The connection that has changed state. This will never be null.
state
Type: org.opendof.core.oalDOFConnectionState
The current state of the connection. This will never be null.
Remarks

This method will be called immediately when the listener is added to the connection with the current state of the connection (either "connected" or "!connected") and then will be called whenever the state changes. All calls to connection state listeners are synchronized, so locking is not required if all access is inside the listener.
See Also

Reference