Adds a connection listener that receives status events about the state of
the DataSource application's connection to other peers.
![](../icons/collapse_all.gif)
C# | Visual Basic | Visual C++ |
public void AddConnectionListener( IConnectionListener listener )
Public Sub AddConnectionListener ( _ listener As IConnectionListener _ )
public: virtual void AddConnectionListener( IConnectionListener^ listener ) sealed
![](../icons/collapse_all.gif)
- listener (IConnectionListener)
- The IConnectionListener to be registered
![](../icons/collapse_all.gif)
Once registered, the IConnectionListener will receive event updates whenever the connect status has changed (for details see the description of IConnectionListener).
You can register more than one IConnectionListener with DataSource. Each registered IConnectionListener will receive events for changes to all peers' connection statuses.