aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/gnunet/peerinfo/PeerProcessor.java
blob: 3a7642527850f900ea9b939252874c5561220f03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package org.gnunet.peerinfo;

import org.gnunet.hello.HelloMessage;
import org.gnunet.util.PeerIdentity;

/**
 * Callback class to receive known peers and their HELLOs.
 */
public interface PeerProcessor {
    /**
     * Process a peer and its hello
     *
     * @param peerIdentity the peer
     * @param hello the hello of the peer
     */
    public void onPeer(PeerIdentity peerIdentity, HelloMessage hello);

    /**
     * Called to indicate the end of a peer list.
     */
    public void onEnd();
}