Implement “SentFeed” response message.
[jFCPlib.git] / src / net / pterodactylus / fcp / Peer.java
index 1fa13e3..3cfa856 100644 (file)
@@ -1,6 +1,5 @@
 /*
- * jSite2 - Peer.java -
- * Copyright © 2008 David Roden
+ * jFCPlib - Peer.java - Copyright © 2008 David Roden
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -92,6 +91,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