Add a connection state-change handler to this connection.
 
Namespace: org.opendof.core.oalAssembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
 
public void addStateListener(
	DOFConnectionStateListener stateListener
)
Parameters
- stateListener
 - Type: org.opendof.core.oalDOFConnectionStateListener
The listener that should be called with state changes. This must not be null.
            	 
 
            Add a connection state-change handler to this connection. The stateListener will be notified
            immediately with the current state of the connection.
            
            There is a possible race condition if you add the listener right after calling
            
connect(int)
            .  That is, your
            listener may be called twice with the "connected" state.  It is preferable to add the listener 
before
            calling connect().  Your listener will then be called twice: once with a "!connected" state and then again with "connected".
            
 
Reference