1 package net.pterodactylus.fcp.quelaton;
3 import java.util.Optional;
5 import net.pterodactylus.fcp.Peer;
8 * Lists a single peer by its name (darknet only), identity, or host name/IP address and port number.
10 * @author <a href="mailto:bombe@freenetproject.org">David ‘Bombe’ Roden</a>
12 public interface ListPeerCommand {
14 Executable<Optional<Peer>> byName(String name);
15 Executable<Optional<Peer>> byIdentity(String identity);
16 Executable<Optional<Peer>> byHostAndPort(String host, int port);