public interface PeerStatusListener
| Modifier and Type | Interface and Description |
|---|---|
static class |
PeerStatusListener.FailReason
The reasons why a peer can fail.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
peerFailed(PeerAddress remotePeer,
PeerStatusListener.FailReason reason)
Called if the peer does not send answer in time.
|
boolean |
peerFound(PeerAddress remotePeer,
PeerAddress referrer)
Called if the peer is online and who reported it.
|
boolean peerFailed(PeerAddress remotePeer, PeerStatusListener.FailReason reason)
remotePeer - The address of the peer that failedforce - The reason, why the peer failed. This is important to understand if we can reenable the peer.boolean peerFound(PeerAddress remotePeer, PeerAddress referrer)
remotePeer - The address of the peer that is online.referrer - the peer that reported the availability of peerAddressCopyright © 2014. All rights reserved.