Expose connected status.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 22 May 2009 05:20:24 +0000 (07:20 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 22 May 2009 05:20:24 +0000 (07:20 +0200)
src/net/pterodactylus/fcp/highlevel/FcpClient.java

index 7f2d8bd..6d9e11a 100644 (file)
@@ -203,6 +203,16 @@ public class FcpClient {
                }
        }
 
+       /**
+        * Returns whether this client is currently connected.
+        *
+        * @return {@code true} if the client is currently connected, {@code false}
+        *         otherwise
+        */
+       public boolean isConnected() {
+               return connected;
+       }
+
        //
        // PEER MANAGEMENT
        //