OpenDOF Project
DOF_CRL_DECLSPEC ReconnectingStateListenerStatus ReconnectingStateListener_AddConnection ( ReconnectingStateListener  self,
DOFConnection  connection 
)

Adds the DOFConnection to the ReconnectingStateListener.

Connections may be added to the ReconnectingStateListener in any state (connected or disconnected). The ReconnectingStateListener automatically attempts to connect connections that are added in a disconnected state. The ReconnectingStateListener will monitor all connections that are added and automatically attempts to reconnect connections that become disconnected.

Parameters
selfThe ReconnectingStateListener.
connectionThe DOFConnection to add to the listener.
Returns
RECONNECTINGSTATELISTENER_STATUS_SUCCESS is returned if the connection was successfully added to the ReconnectingStateListener.
Exceptions
RECONNECTINGSTATELISTENER_STATUS_DUPLICATEis returned if the connection was already added to the ReconnectingStateListener. RECONNECTINGSTATELISTENER_STATUS_FAILED is returned if there was an error that prevented the connection from being added to the ReconnectingStateListener.
core-c-dof-connection-reconnecting-listener Version 3.1.0 Build 0
2017-05-12