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
-
| self | The ReconnectingStateListener. |
| connection | The DOFConnection to add to the listener. |
- Returns
- RECONNECTINGSTATELISTENER_STATUS_SUCCESS is returned if the connection was successfully added to the ReconnectingStateListener.
- Exceptions
-
| RECONNECTINGSTATELISTENER_STATUS_DUPLICATE | is 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. |