projects
/
jFCPlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement GetTrustees message.
[jFCPlib.git]
/
src
/
net
/
pterodactylus
/
fcp
/
Peer.java
diff --git
a/src/net/pterodactylus/fcp/Peer.java
b/src/net/pterodactylus/fcp/Peer.java
index
1fa13e3
..
aec2959
100644
(file)
--- a/
src/net/pterodactylus/fcp/Peer.java
+++ b/
src/net/pterodactylus/fcp/Peer.java
@@
-92,6
+92,16
@@
public class Peer extends BaseMessage {
}
/**
}
/**
+ * Returns whether this peer is a seed.
+ *
+ * @return <code>true</code> if the peer is a seed, <code>false</code>
+ * otherwise
+ */
+ public boolean isSeed() {
+ return Boolean.valueOf(getField("seed"));
+ }
+
+ /**
* Returns the “y” part of the peer’s public DSA key.
*
* @return The public DSA key
* Returns the “y” part of the peer’s public DSA key.
*
* @return The public DSA key