Adds a connection listener that receives status events about the state of
the DataSource application's connection to other peers.
Declaration Syntax
C# | Visual Basic | Visual C++ |
void AddConnectionListener( IConnectionListener listener )
Sub AddConnectionListener ( _ listener As IConnectionListener _ )
void AddConnectionListener( IConnectionListener^ listener )
Parameters
- listener (IConnectionListener)
- The IConnectionListener to be registered
Remarks
Once registered, the IConnectionListener will receive event updates whenever the connection 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.